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
@ -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…
x
Reference in New Issue
Block a user