]> git.lizzy.rs Git - rust.git/blobdiff - src/doc/book/functions.md
doc: fix compiler output
[rust.git] / 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,