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/liballoc/slice.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/liballoc/slice.rs')
| -rw-r--r-- | src/liballoc/slice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc/slice.rs b/src/liballoc/slice.rs index d8fc1faca3a..2ce5bc8ed2f 100644 --- a/src/liballoc/slice.rs +++ b/src/liballoc/slice.rs @@ -432,7 +432,7 @@ impl<T> [T] { /// /// ```should_panic /// // this will panic at runtime - /// b"0123456789abcdef".repeat(usize::max_value()); + /// b"0123456789abcdef".repeat(usize::MAX); /// ``` #[stable(feature = "repeat_generic_slice", since = "1.40.0")] pub fn repeat(&self, n: usize) -> Vec<T> |
