Skip to content

Commit 8fb9313

Browse files
authored
Merge pull request #1191 from russelldavis/elision
Fix usage of the word "elision"
2 parents 48661b7 + ce6c834 commit 8fb9313

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/scope/lifetime/elision.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
# Elision
22

33
Some lifetime patterns are overwhelmingly common and so the borrow checker
4-
will implicitly add them to save typing and to improve readability.
5-
This process of implicit addition is called elision. Elision exists in Rust
6-
solely because these patterns are common.
4+
will allow you to omit them to save typing and to improve readability.
5+
This is known as elision. Elision exists in Rust solely because these patterns
6+
are common.
77

88
The following code shows a few examples of elision. For a more comprehensive
99
description of elision, see [lifetime elision][elision] in the book.
1010

1111
```rust,editable
1212
// `elided_input` and `annotated_input` essentially have identical signatures
13-
// because the lifetime of `elided_input` is elided by the compiler:
13+
// because the lifetime of `elided_input` is inferred by the compiler:
1414
fn elided_input(x: &i32) {
1515
println!("`elided_input`: {}", x);
1616
}

0 commit comments

Comments
 (0)