Document args returned from String::into_raw_parts

This commit is contained in:
许杰友 Jieyou Xu (Joe)
2024-02-26 19:31:51 +00:00
parent dd24a462d5
commit bfeea294cc
+1 -1
View File
@@ -864,7 +864,7 @@ pub fn from_utf16be_lossy(v: &[u8]) -> String {
}
}
/// Decomposes a `String` into its raw components.
/// Decomposes a `String` into its raw components: `(pointer, length, capacity)`.
///
/// Returns the raw pointer to the underlying data, the length of
/// the string (in bytes), and the allocated capacity of the data