We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a254e4 commit 6a1f303Copy full SHA for 6a1f303
src/liballoc/string.rs
@@ -687,7 +687,7 @@ impl String {
687
/// checked:
688
///
689
/// * The memory at `ptr` needs to have been previously allocated by the
690
- /// same allocator the standard library uses.
+ /// same allocator the standard library uses, with a required alignment of exactly 1.
691
/// * `length` needs to be less than or equal to `capacity`.
692
/// * `capacity` needs to be the correct value.
693
0 commit comments