Skip to content

Commit c9ab8b6

Browse files
committed
Fix typos
1 parent bfdcc06 commit c9ab8b6

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
RefMutStack allows to simulate recursion where each level holds a mutable reference to the one held by the caller with an iteration.
88

9-
It is made in such a way that the rules enforced by the borrow checker during the theoretical recursion are still enforced during iterations. On that purpose, each object holding a mutable reference becomes unreachable when the recursion is similated: it is stacked until it becomes usable again.
9+
It is made in such a way that the rules enforced by the borrow checker during the theoretical recursion are still enforced during iterations. On that purpose, each object holding a mutable reference becomes unreachable when the recursion is simulated: it is stacked until it becomes usable again.
1010

1111
## Soundness
1212

@@ -16,7 +16,7 @@ The "`impl Drop` using the held mutable reference" case is even protected but no
1616

1717
## Example
1818

19-
[owned_builder.rs](examples/owned_builder.rs) shows an example of a builder used to iteratively build a tree which should be built recursively otherwise (to leverage the true borrow checker):
19+
[owned_builder.rs](tests/owned_builder.rs) shows an example of a builder used to iteratively build a tree which should be built recursively otherwise (to leverage the true borrow checker):
2020

2121
```rust
2222
use ref_mut_stack::{ParkableRefMut, RefMutStack};

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ use std::{
1212
///
1313
/// It is made in such a way that the rules enforced by the borrow checker during the theoretical
1414
/// recursion are still enforced during iterations. On that purpose, each object holding a mutable
15-
/// reference becomes unreachable when the recursion is similated: it is stacked until it becomes
15+
/// reference becomes unreachable when the recursion is simulated: it is stacked until it becomes
1616
/// usable again.
1717
///
1818
/// In order to use it:

0 commit comments

Comments
 (0)