Fix a typo in the alloc::string::String docs
This commit is contained in:
parent
3cdcdaf31b
commit
7b3ef13146
@ -261,7 +261,7 @@
|
|||||||
///
|
///
|
||||||
/// A `String` is made up of three components: a pointer to some bytes, a
|
/// A `String` is made up of three components: a pointer to some bytes, a
|
||||||
/// length, and a capacity. The pointer points to an internal buffer `String`
|
/// length, and a capacity. The pointer points to an internal buffer `String`
|
||||||
/// uses to store its data. The length is the number of bytes currently stored
|
/// used to store its data. The length is the number of bytes currently stored
|
||||||
/// in the buffer, and the capacity is the size of the buffer in bytes. As such,
|
/// in the buffer, and the capacity is the size of the buffer in bytes. As such,
|
||||||
/// the length will always be less than or equal to the capacity.
|
/// the length will always be less than or equal to the capacity.
|
||||||
///
|
///
|
||||||
|
Loading…
Reference in New Issue
Block a user