Add code for demonstrating loops
This commit is contained in:
parent
8b8e5ac817
commit
fb1df42282
3 changed files with 18 additions and 0 deletions
7
loops/Cargo.lock
generated
Normal file
7
loops/Cargo.lock
generated
Normal file
|
@ -0,0 +1,7 @@
|
|||
# This file is automatically @generated by Cargo.
|
||||
# It is not intended for manual editing.
|
||||
version = 3
|
||||
|
||||
[[package]]
|
||||
name = "loops"
|
||||
version = "0.1.0"
|
6
loops/Cargo.toml
Normal file
6
loops/Cargo.toml
Normal file
|
@ -0,0 +1,6 @@
|
|||
[package]
|
||||
name = "loops"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[dependencies]
|
5
loops/src/main.rs
Normal file
5
loops/src/main.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
fn main() {
|
||||
loop {
|
||||
println!("again!");
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue