Skip to content

Commit 9a1f1bb

Browse files
authored
fix: add comment to callout
1 parent 25f2e22 commit 9a1f1bb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ch3/fileresult/src/main.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ impl File {
3737
}
3838

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

0 commit comments

Comments
 (0)