about summary refs log tree commit diff
path: root/src/libcore/ptr/const_ptr.rs
diff options
context:
space:
mode:
authorLinus Färnstrand <faern@faern.net>2020-03-27 22:15:02 +0100
committerLinus Färnstrand <faern@faern.net>2020-04-03 09:33:10 +0200
commitc0ec0a27b3ed532c0ce58a2ad2f4dcd3d939210a (patch)
treee00113ab406180461be0f7089eb7088301527b92 /src/libcore/ptr/const_ptr.rs
parente9ce03648d293975e5b208b1b03b503270b80bde (diff)
downloadrust-c0ec0a27b3ed532c0ce58a2ad2f4dcd3d939210a.tar.gz
rust-c0ec0a27b3ed532c0ce58a2ad2f4dcd3d939210a.zip
Replace max/min_value() with MAX/MIN assoc consts
Diffstat (limited to 'src/libcore/ptr/const_ptr.rs')
-rw-r--r--src/libcore/ptr/const_ptr.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ptr/const_ptr.rs b/src/libcore/ptr/const_ptr.rs
index a540016854d..52e224d2a02 100644
--- a/src/libcore/ptr/const_ptr.rs
+++ b/src/libcore/ptr/const_ptr.rs
@@ -659,8 +659,8 @@ impl<T: ?Sized> *const T {
     /// `align`.
     ///
     /// If it is not possible to align the pointer, the implementation returns
-    /// `usize::max_value()`. It is permissible for the implementation to *always*
-    /// return `usize::max_value()`. Only your algorithm's performance can depend
+    /// `usize::MAX`. It is permissible for the implementation to *always*
+    /// return `usize::MAX`. Only your algorithm's performance can depend
     /// on getting a usable offset here, not its correctness.
     ///
     /// The offset is expressed in number of `T` elements, and not bytes. The value returned can be