Skip to content

Commit 6af2b46

Browse files
tshepanghehaoqian
authored andcommitted
str type: make sentence more readable
1 parent 2f90e8d commit 6af2b46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/textual.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ or 0xE000 to 0x10FFFF range. It is immediate [Undefined Behavior] to create a
88
`char` that falls outside this range. A `[char]` is effectively a UCS-4 / UTF-32
99
string of length 1.
1010

11-
A value of type `str` is represented the same way as `[u8]`, it is a slice of
11+
A value of type `str` is represented the same way as `[u8]`, a slice of
1212
8-bit unsigned bytes. However, the Rust standard library makes extra assumptions
1313
about `str`: methods working on `str` assume and ensure that the data in there
1414
is valid UTF-8. Calling a `str` method with a non-UTF-8 buffer can cause

0 commit comments

Comments
 (0)