Skip to content

Commit

Permalink
Merge pull request #1802 from AndreasHuber/AndreasHuber-patch-1
Browse files Browse the repository at this point in the history
fix(str.md): avoid misunderstanding that there were only two string types
  • Loading branch information
marioidival authored Jan 20, 2024
2 parents ddf5cb0 + d5f0758 commit 94d4aed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/str.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Strings

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

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

0 comments on commit 94d4aed

Please sign in to comment.