Skip to content

Commit

Permalink
Rollup merge of #31658 - felgru:master, r=steveklabnik
Browse files Browse the repository at this point in the history
In the Rust code above this block of compiler output, the function is called print_sum, so use the same function name in the error message.
  • Loading branch information
steveklabnik committed Feb 14, 2016
2 parents c244acc + 3eebec6 commit fb09a44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/book/functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fb09a44

Please sign in to comment.