Skip to content

Commit

Permalink
fix: add comment to callout
Browse files Browse the repository at this point in the history
  • Loading branch information
timClicks authored Aug 9, 2021
1 parent 25f2e22 commit 9a1f1bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ch3/fileresult/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ impl File {
}

fn open(f: File) -> Result<File, String> {
if one_in(10_000) { <7>
if one_in(10_000) { // <7>
let err_msg = String::from("Permission denied");
return Err(err_msg);
}
Expand Down Expand Up @@ -67,4 +67,4 @@ fn main() {
println!("{:?}", f4);
println!("{} is {} bytes long", &f4.name, f4_length);
println!("{}", text);
}
}

0 comments on commit 9a1f1bb

Please sign in to comment.