302: Add clarification in String r=japaric a=mriise

Needed to look into implementation to be sure String was allocating bytes not chars.

Co-authored-by: Melanie Riise <me@mriise.net>
This commit is contained in:
bors[bot] 2022-07-06 09:19:05 +00:00 committed by GitHub
commit 1463915689
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ pub struct String<const N: usize> {
}
impl<const N: usize> String<N> {
/// Constructs a new, empty `String` with a fixed capacity of `N`
/// Constructs a new, empty `String` with a fixed capacity of `N` bytes
///
/// # Examples
///