Skip to content

Commit 7b3ef13

Browse files
committed
Fix a typo in the alloc::string::String docs
1 parent 3cdcdaf commit 7b3ef13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ use crate::vec::Vec;
261261
///
262262
/// A `String` is made up of three components: a pointer to some bytes, a
263263
/// length, and a capacity. The pointer points to an internal buffer `String`
264-
/// uses to store its data. The length is the number of bytes currently stored
264+
/// used to store its data. The length is the number of bytes currently stored
265265
/// in the buffer, and the capacity is the size of the buffer in bytes. As such,
266266
/// the length will always be less than or equal to the capacity.
267267
///

0 commit comments

Comments
 (0)