@@ -1793,7 +1793,7 @@ Finally, Cargo generated a hello, world for us. Check out `src/main.rs`:
1793
1793
1794
1794
``` {rust}
1795
1795
fn main() {
1796
- println!("Hello, world!");
1796
+ println!("Hello, world!")
1797
1797
}
1798
1798
```
1799
1799
@@ -2682,12 +2682,12 @@ like this:
2682
2682
2683
2683
```
2684
2684
fn main() {
2685
- println!("Hello, world!");
2685
+ println!("Hello, world!")
2686
2686
}
2687
2687
2688
2688
mod hello {
2689
2689
fn print_hello() {
2690
- println!("Hello, world!");
2690
+ println!("Hello, world!")
2691
2691
}
2692
2692
}
2693
2693
```
@@ -2721,7 +2721,7 @@ fn main() {
2721
2721
2722
2722
mod hello {
2723
2723
fn print_hello() {
2724
- println!("Hello, world!");
2724
+ println!("Hello, world!")
2725
2725
}
2726
2726
}
2727
2727
```
@@ -2744,7 +2744,7 @@ fn main() {
2744
2744
2745
2745
mod hello {
2746
2746
pub fn print_hello() {
2747
- println!("Hello, world!");
2747
+ println!("Hello, world!")
2748
2748
}
2749
2749
}
2750
2750
```
@@ -2923,7 +2923,7 @@ $ cargo test
2923
2923
Compiling testing v0.0.1 (file:///home/you/projects/testing)
2924
2924
/home/you/projects/testing/src/main.rs:1:1: 3:2 warning: code is never used: `main`, #[warn(dead_code)] on by default
2925
2925
/home/you/projects/testing/src/main.rs:1 fn main() {
2926
- /home/you/projects/testing/src/main.rs:2 println!("Hello, world");
2926
+ /home/you/projects/testing/src/main.rs:2 println!("Hello, world!")
2927
2927
/home/you/projects/testing/src/main.rs:3 }
2928
2928
2929
2929
running 0 tests
@@ -2962,7 +2962,7 @@ You can run all of your tests with `cargo test`. This runs both your tests in
2962
2962
``` {notrust,ignore}
2963
2963
/home/you/projects/testing/src/main.rs:1:1: 3:2 warning: code is never used: `main`, #[warn(dead_code)] on by default
2964
2964
/home/you/projects/testing/src/main.rs:1 fn main() {
2965
- /home/you/projects/testing/src/main.rs:2 println!("Hello, world");
2965
+ /home/you/projects/testing/src/main.rs:2 println!("Hello, world!")
2966
2966
/home/you/projects/testing/src/main.rs:3 }
2967
2967
```
2968
2968
@@ -3051,7 +3051,7 @@ function. Change your `src/main.rs` to look like this:
3051
3051
``` {rust}
3052
3052
#[cfg(not(test))]
3053
3053
fn main() {
3054
- println!("Hello, world");
3054
+ println!("Hello, world!")
3055
3055
}
3056
3056
```
3057
3057
@@ -3133,7 +3133,7 @@ extern crate testing;
3133
3133
3134
3134
#[cfg(not(test))]
3135
3135
fn main() {
3136
- println!("Hello, world");
3136
+ println!("Hello, world!")
3137
3137
}
3138
3138
```
3139
3139
0 commit comments