Skip to content

Commit

Permalink
doc: Strings are vectors of u8, not [u8]
Browse files Browse the repository at this point in the history
  • Loading branch information
brson committed Oct 6, 2012
1 parent 3077a2b commit 02c33f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion doc/tutorial.md
Expand Up @@ -1448,7 +1448,7 @@ mutable_crayons[0] = Apricot;
This is a simple example of Rust's _dual-mode data structures_, also
referred to as _freezing and thawing_.

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

0 comments on commit 02c33f8

Please sign in to comment.