Skip to content

Commit 6a1f303

Browse files
committed
also edit String::from_raw_parts while we are at it
1 parent 1a254e4 commit 6a1f303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/liballoc/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,7 @@ impl String {
687687
/// checked:
688688
///
689689
/// * The memory at `ptr` needs to have been previously allocated by the
690-
/// same allocator the standard library uses.
690+
/// same allocator the standard library uses, with a required alignment of exactly 1.
691691
/// * `length` needs to be less than or equal to `capacity`.
692692
/// * `capacity` needs to be the correct value.
693693
///

0 commit comments

Comments
 (0)