Skip to content

Commit a989ed8

Browse files
committed
Adding an ignore annotation to an infinite loop so that it wont hang the tester.
1 parent 4a5194a commit a989ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/loops.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Rust currently provides three approaches to performing some kind of iterative ac
66

77
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:
88

9-
```rust
9+
```rust,ignore
1010
loop {
1111
println!("Loop forever!");
1212
}

0 commit comments

Comments
 (0)