diff --git a/doc/rust.md b/doc/rust.md index b64bb7eb5f9..c26e2dfb906 100644 --- a/doc/rust.md +++ b/doc/rust.md @@ -1030,7 +1030,7 @@ A special kind of function can be declared with a `!` character where the output slot type would normally be. For example: ~~~~ -fn my_err(s: ~str) -> ! { +fn my_err(s: &str) -> ! { log(info, s); fail; }