From 3614c8f496a739ce95a8ffdba0efe0485449b2ed Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Tue, 24 Mar 2026 01:20:16 +0200 Subject: [PATCH] fix a sentence regarding early bounds --- src/early-late-parameters.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/early-late-parameters.md b/src/early-late-parameters.md index d78d5331b..380f89c92 100644 --- a/src/early-late-parameters.md +++ b/src/early-late-parameters.md @@ -132,7 +132,7 @@ f(&String::new()); In this example, we call `foo`'s function item type twice, each time with a borrow of a temporary. These two borrows could not possibly have lifetimes that overlap as the temporaries are only alive during the function call, not after. -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. +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. 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. See the following example, which demonstrates this using the `bar` function defined above: