Skip to content

Commit deb2e44

Browse files
committed
Document args returned from String::into_raw_parts
1 parent d3b08ce commit deb2e44

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

alloc/src/string.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -864,7 +864,7 @@ impl String {
864864
}
865865
}
866866

867-
/// Decomposes a `String` into its raw components.
867+
/// Decomposes a `String` into its raw components: `(pointer, length, capacity)`.
868868
///
869869
/// Returns the raw pointer to the underlying data, the length of
870870
/// the string (in bytes), and the allocated capacity of the data

0 commit comments

Comments
 (0)