diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index 6dadbc8e364..955438f49a1 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -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 ///