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:
parent
004c4b4b7d
commit
3eebec697c
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue