From f7dfdfb31db5d8dd81d3ee22e57c7e30715f5fa4 Mon Sep 17 00:00:00 2001 From: Michali Sarris Date: Mon, 31 Dec 2018 09:30:17 +0800 Subject: [PATCH] Fix double "the" in aliasing.md --- src/aliasing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aliasing.md b/src/aliasing.md index 3946b7f..ebdec9a 100644 --- a/src/aliasing.md +++ b/src/aliasing.md @@ -89,7 +89,7 @@ In the previous example, we used the fact that `&mut u32` can't be aliased to pr that writes to `*output` can't possibly affect `*input`. This let us cache `*input` in a register, eliminating a read. -By caching this read, we knew that the the write in the `> 10` branch couldn't +By caching this read, we knew that the write in the `> 10` branch couldn't affect whether we take the `> 5` branch, allowing us to also eliminate a read-modify-write (doubling `*output`) when `*input > 10`.