]> git.lizzy.rs Git - rust.git/commitdiff
doc: fix compiler output
authorFelix Gruber <felgru@gmx.de>
Sun, 14 Feb 2016 19:50:12 +0000 (20:50 +0100)
committerFelix Gruber <felgru@gmx.de>
Sun, 14 Feb 2016 19:50:12 +0000 (20:50 +0100)
In the Rust code above, the function is called print_sum, so use the
same function name in the error message.

src/doc/book/functions.md

index be905599c64415684110f730bd1e4e3ec0149646..31c9da3fadae2cd0f983938d99b81d6294094535 100644 (file)
@@ -68,7 +68,7 @@ You get this error:
 
 ```text
 expected one of `!`, `:`, or `@`, found `)`
-fn print_number(x, y) {
+fn print_sum(x, y) {
 ```
 
 This is a deliberate design decision. While full-program inference is possible,