]> git.lizzy.rs Git - rust.git/commitdiff
UB is src bzns
authorAlexis Beingessner <a.beingessner@gmail.com>
Mon, 20 Jul 2015 18:37:15 +0000 (11:37 -0700)
committerAlexis Beingessner <a.beingessner@gmail.com>
Mon, 20 Jul 2015 18:37:15 +0000 (11:37 -0700)
src/doc/tarpl/vec-into-iter.md

index 566cad75b51247c9a7737d51b4ba070e59e18e6c..0ffc23c452333297cba0f0e75b5b051fdb68805c 100644 (file)
@@ -63,7 +63,7 @@ However because `offset` is marked as a GEP inbounds instruction, this will tell
 LLVM that ptr is allocated and won't alias other allocated memory. This is fine
 for zero-sized types, as they can't alias anything. However if we're using
 `heap::EMPTY` as a sentinel for a non-allocation for a *non-zero-sized* type,
-this can cause undefined behaviour. Alas, we must therefore special case either
+this can cause Undefined Behaviour. Alas, we must therefore special case either
 cap or len being 0 to not do the offset.
 
 So this is what we end up with for initialization: