about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libcore/alloc.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libcore/alloc.rs b/src/libcore/alloc.rs
index 0c074582281..91447e01ad4 100644
--- a/src/libcore/alloc.rs
+++ b/src/libcore/alloc.rs
@@ -67,6 +67,8 @@ impl Layout {
     /// or returns `LayoutErr` if either of the following conditions
     /// are not met:
     ///
+    /// * `align` must not be zero,
+    ///
     /// * `align` must be a power of two,
     ///
     /// * `size`, when rounded up to the nearest multiple of `align`,