diff options
Diffstat (limited to 'src/doc/trpl/more-strings.md')
| -rw-r--r-- | src/doc/trpl/more-strings.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/more-strings.md b/src/doc/trpl/more-strings.md index c46f84caa86..17a463842e7 100644 --- a/src/doc/trpl/more-strings.md +++ b/src/doc/trpl/more-strings.md @@ -129,7 +129,7 @@ need, and it can make your lifetimes more complex. To write a function that's generic over types of strings, use `&str`. ``` -fn some_string_length(x: &str) -> uint { +fn some_string_length(x: &str) -> usize { x.len() } |
