Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Celina G. Val <celinval@amazon.com>
  • Loading branch information
JustusAdam and celinval committed Aug 1, 2023
1 parent d0a8a3f commit 5c11c38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rfc/src/rfcs/0008-function-contracts.md
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ impl<T> Vec<T> {
```

`old` allows evaluating any (side-effect free[^side-effects]) Rust expression.
The bowwor checker enforces the result of `old` cannot observe the mutations
The borrow checker enforces the result of `old` cannot observe the mutations
from e.g. `pop`, as that would defeat the purpose. If `your` expression in `old`
returns borrowed content, make a copy instead (using e.g. `clone()`).

Expand Down

0 comments on commit 5c11c38

Please sign in to comment.