Rearrange String::from_raw_parts doc argument order to match code argument order

This commit is contained in:
许杰友 Jieyou Xu (Joe) 2024-02-26 19:24:49 +00:00
parent a1b93e8fed
commit 26bdf2900a
No known key found for this signature in database
GPG Key ID: 95DDEBD74A1DC2C0

View File

@ -896,7 +896,7 @@ impl String {
self.vec.into_raw_parts()
}
/// Creates a new `String` from a length, capacity, and pointer.
/// Creates a new `String` from a pointer, a length and a capacity.
///
/// # Safety
///