Skip to content

Commit 3c181d2

Browse files
authored
Merge pull request #108 from swalladge/spellcheck
fix spelling on lexical lifetimes page
2 parents f1500b5 + f61e1c1 commit 3c181d2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/rust-2018/ownership-and-lifetimes/non-lexical-lifetimes.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
![Minimum Rust version: beta](https://img.shields.io/badge/Minimum%20Rust%20Version-beta-orange.svg)
44

55
The borrow checker has been enhanced to accept more code, via a mechanism
6-
called "non-lexial lifetimes." Consider this example:
6+
called "non-lexical lifetimes." Consider this example:
77

88
```rust,ignore
99
fn main() {
@@ -64,7 +64,7 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
6464
| - immutable borrow ends here
6565
```
6666

67-
With non-lexial lifetime, the error changes slightly:
67+
With non-lexical lifetimes, the error changes slightly:
6868

6969
```text
7070
error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immutable
@@ -79,5 +79,5 @@ error[E0502]: cannot borrow `x` as mutable because it is also borrowed as immuta
7979
| - borrow later used here
8080
```
8181

82-
instead of pointing to where `y` goes out of scope, it insteads shows you where
83-
the conflicting borrow occurs. This makes these sorts of errors *far* easier to debug.
82+
Instead of pointing to where `y` goes out of scope, it shows you where
83+
the conflicting borrow occurs. This makes these sorts of errors *far* easier to debug.

0 commit comments

Comments
 (0)