From b55950768036d36704db6721d6ad47891d95b1ad Mon Sep 17 00:00:00 2001 From: Stjepan Glavina Date: Sat, 27 May 2017 00:25:21 +0200 Subject: [PATCH] Clarify the docs for align_of and its variants --- src/libcore/mem.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/libcore/mem.rs b/src/libcore/mem.rs index f4ce4697d7c..97b814a5da2 100644 --- a/src/libcore/mem.rs +++ b/src/libcore/mem.rs @@ -220,7 +220,7 @@ pub fn size_of_val(val: &T) -> usize { /// Returns the [ABI]-required minimum alignment of a type. /// -/// Every valid address of a value of the type `T` must be a multiple of this number. +/// Every reference to a value of type `T` must be a multiple of this number. /// /// This is the alignment used for struct fields. It may be smaller than the preferred alignment. /// @@ -243,7 +243,7 @@ pub fn min_align_of() -> usize { /// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to. /// -/// Every valid address of a value of the type `T` must be a multiple of this number. +/// Every reference to a value of type `T` must be a multiple of this number. /// /// [ABI]: https://en.wikipedia.org/wiki/Application_binary_interface /// @@ -264,7 +264,7 @@ pub fn min_align_of_val(val: &T) -> usize { /// Returns the [ABI]-required minimum alignment of a type. /// -/// Every valid address of a value of the type `T` must be a multiple of this number. +/// Every reference to a value of type `T` must be a multiple of this number. /// /// This is the alignment used for struct fields. It may be smaller than the preferred alignment. /// @@ -285,7 +285,7 @@ pub fn align_of() -> usize { /// Returns the [ABI]-required minimum alignment of the type of the value that `val` points to. /// -/// Every valid address of a value of the type `T` must be a multiple of this number. +/// Every reference to a value of type `T` must be a multiple of this number. /// /// [ABI]: https://en.wikipedia.org/wiki/Application_binary_interface /// -- 2.44.0