Skip to content

Commit ad2011d

Browse files
authored
Merge pull request #4164 from rust-lang/ch10-03-static-error-messages
Ch. 10: clarify note about compiler errors and `'static`
2 parents cd3b1c0 + 80d6bbe commit ad2011d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ch10-03-lifetime-syntax.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ let s: &'static str = "I have a static lifetime.";
567567
The text of this string is stored directly in the program’s binary, which is
568568
always available. Therefore, the lifetime of all string literals is `'static`.
569569

570-
You might see suggestions to use the `'static` lifetime in error messages. But
570+
You might see suggestions in error messages to use the `'static` lifetime. But
571571
before specifying `'static` as the lifetime for a reference, think about
572572
whether the reference you have actually lives the entire lifetime of your
573573
program or not, and whether you want it to. Most of the time, an error message

0 commit comments

Comments
 (0)