From 3eebec697ca4031b98aa32939701ed80e3a41706 Mon Sep 17 00:00:00 2001 From: Felix Gruber Date: Sun, 14 Feb 2016 20:50:12 +0100 Subject: [PATCH] doc: fix compiler output 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/book/functions.md b/src/doc/book/functions.md index be905599c6441..31c9da3fadae2 100644 --- a/src/doc/book/functions.md +++ b/src/doc/book/functions.md @@ -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,