Skip to content

Commit

Permalink
Rearrange String::from_raw_parts doc argument order to match code a…
Browse files Browse the repository at this point in the history
…rgument order
  • Loading branch information
jieyouxu committed Feb 26, 2024
1 parent a1b93e8 commit 26bdf29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/alloc/src/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
///
Expand Down

0 comments on commit 26bdf29

Please sign in to comment.