Skip to content

Commit 42ae6bb

Browse files
committed
Minor change to wording in Variables and Bindings
In the context of explaining the declaration of mutable bindings, using 'intended' probably conveys the meaning better than 'cared'.
1 parent d2368c3 commit 42ae6bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ x = 10i;
460460
There is no single reason that bindings are immutable by default, but we can
461461
think about it through one of Rust's primary focuses: safety. If you forget to
462462
say `mut`, the compiler will catch it, and let you know that you have mutated
463-
something you may not have cared to mutate. If bindings were mutable by
463+
something you may not have intended to mutate. If bindings were mutable by
464464
default, the compiler would not be able to tell you this. If you _did_ intend
465465
mutation, then the solution is quite easy: add `mut`.
466466

0 commit comments

Comments
 (0)