about summary refs log tree commit diff
path: root/src/liballoc
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2019-11-05 09:57:52 +0100
committerRalf Jung <post@ralfj.de>2019-11-05 09:57:52 +0100
commit6a1f303b98fe77775f3f201bef792a98e31e79e8 (patch)
tree1541a8708fdcc3a7657006787c0caf738bfbe727 /src/liballoc
parent1a254e4f434e0cbb9ffcb24971416cb574df4751 (diff)
downloadrust-6a1f303b98fe77775f3f201bef792a98e31e79e8.tar.gz
rust-6a1f303b98fe77775f3f201bef792a98e31e79e8.zip
also edit String::from_raw_parts while we are at it
Diffstat (limited to 'src/liballoc')
-rw-r--r--src/liballoc/string.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/string.rs b/src/liballoc/string.rs
index d9927c642b2..62e58b6facd 100644
--- a/src/liballoc/string.rs
+++ b/src/liballoc/string.rs
@@ -687,7 +687,7 @@ impl String {
     /// checked:
     ///
     /// * The memory at `ptr` needs to have been previously allocated by the
-    ///   same allocator the standard library uses.
+    ///   same allocator the standard library uses, with a required alignment of exactly 1.
     /// * `length` needs to be less than or equal to `capacity`.
     /// * `capacity` needs to be the correct value.
     ///