Skip to content

Commit ec64089

Browse files
committed
make example less confusing
1 parent ad877f0 commit ec64089

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/autodiff/examples/struct.rs

+1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ fn sin(x: &Foo) -> f32 {
1818

1919
fn main() {
2020
let mut s = String::new();
21+
println!("Please enter a value for c1");
2122
io::stdin().read_line(&mut s).unwrap();
2223
let c2 = s.trim_end().parse::<i16>().unwrap();
2324
dbg!(c2);

0 commit comments

Comments
 (0)