Skip to content

Commit 9af5071

Browse files
authored
Split str DST into a separate paragraph.
1 parent ed7ad72 commit 9af5071

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/types/textual.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ A value of type `str` is represented the same way as `[u8]`, it is 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
15-
[Undefined Behavior] now or in the future. \
15+
[Undefined Behavior] now or in the future.
16+
1617
Since `str` is a [dynamically sized type], it can only be instantiated through a
1718
pointer type, such as `&str`.
1819

0 commit comments

Comments
 (0)