Skip to content

Commit 6becc11

Browse files
authored
Merge pull request #47 from EnzymeAD/update-example
make example less confusing
2 parents ad877f0 + ec64089 commit 6becc11

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/autodiff/examples/struct.rs

Lines changed: 1 addition & 0 deletions
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)