Skip to content

Commit 26bdf29

Browse files
committed
Rearrange String::from_raw_parts doc argument order to match code argument order
1 parent a1b93e8 commit 26bdf29

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/alloc/src/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ impl String {
896896
self.vec.into_raw_parts()
897897
}
898898

899-
/// Creates a new `String` from a length, capacity, and pointer.
899+
/// Creates a new `String` from a pointer, a length and a capacity.
900900
///
901901
/// # Safety
902902
///

0 commit comments

Comments
 (0)