From a989ed8880ee63df120c2e2cd073e41e6beed4e3 Mon Sep 17 00:00:00 2001 From: Kieran Hunt Date: Sat, 1 Aug 2015 22:02:00 +0200 Subject: [PATCH] Adding an ignore annotation to an infinite loop so that it wont hang the tester. --- src/doc/trpl/loops.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/loops.md b/src/doc/trpl/loops.md index 91ff832a19a5..a91fb8dadafb 100644 --- a/src/doc/trpl/loops.md +++ b/src/doc/trpl/loops.md @@ -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!"); }