Skip to content

Commit 02c33f8

Browse files
committed
doc: Strings are vectors of u8, not [u8]
1 parent 3077a2b commit 02c33f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1448,7 +1448,7 @@ mutable_crayons[0] = Apricot;
14481448
This is a simple example of Rust's _dual-mode data structures_, also
14491449
referred to as _freezing and thawing_.
14501450

1451-
Strings are implemented with vectors of `[u8]`, though they have a distinct
1451+
Strings are implemented with vectors of `u8`, though they have a distinct
14521452
type. They support most of the same allocation options as
14531453
vectors, though the string literal without a storage sigil, e.g.
14541454
`"foo"` is treated differently than a comparable vector (`[foo]`).

0 commit comments

Comments
 (0)