From 9cc14cd6a46b2e4385f94b86fb9f1281327e8adc Mon Sep 17 00:00:00 2001 From: portal Date: Sat, 29 Apr 2017 14:51:21 +0300 Subject: [PATCH] Replace occurrences of `uint` with `usize` --- src/lifetime-elision.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lifetime-elision.md b/src/lifetime-elision.md index e92d735..7628351 100644 --- a/src/lifetime-elision.md +++ b/src/lifetime-elision.md @@ -42,11 +42,11 @@ Examples: fn print(s: &str); // elided fn print<'a>(s: &'a str); // expanded -fn debug(lvl: uint, s: &str); // elided -fn debug<'a>(lvl: uint, s: &'a str); // expanded +fn debug(lvl: usize, s: &str); // elided +fn debug<'a>(lvl: usize, s: &'a str); // expanded -fn substr(s: &str, until: uint) -> &str; // elided -fn substr<'a>(s: &'a str, until: uint) -> &'a str; // expanded +fn substr(s: &str, until: usize) -> &str; // elided +fn substr<'a>(s: &'a str, until: usize) -> &'a str; // expanded fn get_str() -> &str; // ILLEGAL