Skip to content

Commit 3614c8f

Browse files
authored
fix a sentence regarding early bounds
1 parent a9f3e8e commit 3614c8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/early-late-parameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ f(&String::new());
132132

133133
In this example, we call `foo`'s function item type twice, each time with a borrow of a temporary.
134134
These two borrows could not possibly have lifetimes that overlap as the temporaries are only alive during the function call, not after.
135-
The lifetime parameter on `foo` being early bound requires all callers of `f` to provide a borrow with the same lifetime, as this is not possible the borrow checker errors.
135+
The lifetime parameter on `foo` being early bound requires all callers of `f` to provide a borrow with the same lifetime, else this would not be possible due borrow checker errors.
136136

137137
If the lifetime parameter on `foo` was late bound, this would be able to compile as each caller could provide a different lifetime argument for its borrow.
138138
See the following example, which demonstrates this using the `bar` function defined above:

0 commit comments

Comments
 (0)