book icon indicating copy to clipboard operation
book copied to clipboard

Fix typo in ch10-03

Open paldepind opened this issue 2 years ago • 2 comments

The "if" seems misplaced. When reading it feels like "if" refers to "deterministically" as if the compiler might sometimes apply the rules nondeterministically 😅

paldepind avatar Feb 14 '23 18:02 paldepind

Thanks for the comment. Agree that it would be great to get this fixed.

What about this (my change in italics):

The elision rules don’t provide full inference. If there is still ambiguity as to what lifetimes the references have after Rust have applied the rules, the compiler won’t guess what the lifetime of the remaining references should be.

I'm not a native speaker but to me it feels like "apply" needs to be in past time (i.e. "applied" instead of "applies") due to the use of "after".

Could also be:

The elision rules don’t provide full inference. If there is still ambiguity as to what lifetimes the references have after the rules have been applied, the compiler won’t guess what the lifetime of the remaining references should be.

This removes "Rust" which I think simplifies the sentence a bit because the compiler is the only acting part instead of both having "Rust" and "the compiler" as something that does something in the same sentence.

In any case I'll be happy to update the PR.

paldepind avatar Apr 30 '24 17:04 paldepind

Thanks for the response! For what it’s worth, the way I phrased it is actually very idiomatic English!

chriskrycho avatar May 05 '24 01:05 chriskrycho

l've updated the PR with the wording that you suggested @chriskrycho :)

paldepind avatar May 27 '24 17:05 paldepind