]> git.lizzy.rs Git - rust.git/blobdiff - src/doc/trpl/loops.md
Adding an ignore annotation to an infinite loop so that it wont hang the tester.
[rust.git] / src / doc / trpl / loops.md
index 91ff832a19a51534e06ba07faefd76ef9b6c6875..a91fb8dadafb4f36ad9383d9986a4a642013588c 100644 (file)
@@ -6,7 +6,7 @@ Rust currently provides three approaches to performing some kind of iterative ac
 
 The infinite `loop` is the simplest form of loop available in Rust. Using the keyword `loop`, Rust provides a way to loop indefinitely until some terminating statement is reached. Rust's infinite `loop`s look like this:
 
-```rust
+```rust,ignore
 loop {
     println!("Loop forever!");
 }