Skip to content

Commit 581dc50

Browse files
deptnojsoverson
authored andcommitted
fix: remove duplication
1 parent 1303652 commit 581dc50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/chapters/chapter-4-hello-world.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ help: you might be missing a string literal to format with
9898
error: could not compile `day-4-strings-wtf-1` due to previous error
9999
----
100100

101-
If you expected this to work, you'd be normal. In most languages a string is a string is a string. Not in Rust. Do pay attention to the error message though. Rust's error messages are _leagues_ beyond the error messages you're probably used to. This message not only describes the problem, but shows you exactly where it occurs *_AND_* tells you exactly what you need to do to fix it. `println!()` requires a string literal as the first argument and supports a formatting syntax for replacing portions with variables. Change your program to the following to get back on track.
101+
If you expected this to work, you'd be normal. In most languages a string is a string. Not in Rust. Do pay attention to the error message though. Rust's error messages are _leagues_ beyond the error messages you're probably used to. This message not only describes the problem, but shows you exactly where it occurs *_AND_* tells you exactly what you need to do to fix it. `println!()` requires a string literal as the first argument and supports a formatting syntax for replacing portions with variables. Change your program to the following to get back on track.
102102

103103
[source,rust]
104104
----

0 commit comments

Comments
 (0)