Fix wording on the aliasing section

It should've said "the value of a local variable cannot alias
things...".
pull/366/head
Yuki Okushi 2 years ago
parent 09044272ec
commit c192af31ce
No known key found for this signature in database
GPG Key ID: 379CEEFDD63E5DD7

@ -118,8 +118,8 @@ fn compute(input: &u32, output: &mut u32) {
}
```
We're still relying on alias analysis to assume that `temp` doesn't alias
`input`, but the proof is much simpler: the value of a local variable can't be
We're still relying on alias analysis to assume that `input` doesn't alias
`temp`, but the proof is much simpler: the value of a local variable can't be
aliased by things that existed before it was declared. This is an assumption
every language freely makes, and so this version of the function could be
optimized the way we want in any language.

Loading…
Cancel
Save