diff options
| author | bors <bors@rust-lang.org> | 2021-04-13 14:03:49 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-04-13 14:03:49 +0000 |
| commit | 5c1304205b7bc53a1e9f48cf286a60438351c1ab (patch) | |
| tree | 768f4fd8bea25fcd4ec2a715747c1f4c982c86cb /compiler/rustc_codegen_llvm/src | |
| parent | 5258a74c887f8ae14717e1f98b652b470877ce4e (diff) | |
| parent | b89c464bede7247b8ebe66b52109575d1d198e79 (diff) | |
| download | rust-5c1304205b7bc53a1e9f48cf286a60438351c1ab.tar.gz rust-5c1304205b7bc53a1e9f48cf286a60438351c1ab.zip | |
Auto merge of #84135 - rust-lang:GuillaumeGomez-patch-1, r=kennytm
Improve code example for length comparison Small fix/improvement: it's much safer to check that you're under the length of an array rather than chacking that you're equal to it. It's even more true in case you update the length of the array while iterating.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions
