Skip to content

Commit

Permalink
Merge pull request #270 from TonalidadeHidrica/fix-syntax-error
Browse files Browse the repository at this point in the history
Fix syntax error in code example
  • Loading branch information
ehuss authored Nov 3, 2021
2 parents e3136d6 + 9f9c0c2 commit fc573c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust-2021/prelude.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ We can fix this by using fully qualified syntax:
```rust,ignore
fn main() {
// Now it is clear which trait method we're referring to
<Vec<i32> as MyTrait<()>::from_iter(None);
<Vec<i32> as MyTrait<()>>::from_iter(None);
}
```

Expand Down

0 comments on commit fc573c3

Please sign in to comment.