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.
This commit is contained in:
Felix Gruber 2016-02-14 20:50:12 +01:00
parent 004c4b4b7d
commit 3eebec697c

View 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,