Skip to content

Commit 94d4aed

Browse files
authored
Merge pull request #1802 from AndreasHuber/AndreasHuber-patch-1
fix(str.md): avoid misunderstanding that there were only two string types
2 parents ddf5cb0 + d5f0758 commit 94d4aed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/std/str.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Strings
22

3-
There are two types of strings in Rust: `String` and `&str`.
3+
The two most used string types in Rust are `String` and `&str`.
44

55
A `String` is stored as a vector of bytes (`Vec<u8>`), but guaranteed to
66
always be a valid UTF-8 sequence. `String` is heap allocated, growable and not

0 commit comments

Comments
 (0)