diff options
| author | Linus Färnstrand <faern@faern.net> | 2020-03-27 22:15:02 +0100 |
|---|---|---|
| committer | Linus Färnstrand <faern@faern.net> | 2020-04-03 09:33:10 +0200 |
| commit | c0ec0a27b3ed532c0ce58a2ad2f4dcd3d939210a (patch) | |
| tree | e00113ab406180461be0f7089eb7088301527b92 /src/libcore/ptr/const_ptr.rs | |
| parent | e9ce03648d293975e5b208b1b03b503270b80bde (diff) | |
| download | rust-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.rs | 4 |
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 |
