File tree 1 file changed +0
-11
lines changed
1 file changed +0
-11
lines changed Original file line number Diff line number Diff line change @@ -44,17 +44,6 @@ the string is valid for the `'static` lifetime, otherwise known as the
44
44
lifetime of the entire program. As can be inferred from the type, these static
45
45
strings are not mutable.
46
46
47
- # Mutability
48
-
49
- Many languages have immutable strings by default, and Rust has a particular
50
- flavor on this idea. As with the rest of Rust types, strings are immutable by
51
- default. If a string is declared as `mut`, however, it may be mutated. This
52
- works the same way as the rest of Rust's type system in the sense that if
53
- there's a mutable reference to a string, there may only be one mutable reference
54
- to that string. With these guarantees, strings can easily transition between
55
- being mutable/immutable with the same benefits of having mutable strings in
56
- other languages.
57
-
58
47
# Representation
59
48
60
49
Rust's string type, `str`, is a sequence of unicode scalar values encoded as a
You can’t perform that action at this time.
0 commit comments