Skip to content

Commit 89a0b43

Browse files
Merge pull request #181 from fryeb/fix/tut-paths-longest-path
Fix inconsistency in tut_paths
2 parents 2866214 + 1b6d1d3 commit 89a0b43

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/code_samples/tut_paths/07.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ fn main() {
3333
let another_long_path = Path::from_components(&[component1, component2, component4]).unwrap();
3434
println!(
3535
"The longest common prefix of long_path and another_long_path is: {:?}",
36-
ideas_path.longest_common_prefix(&another_long_path)
36+
long_path.longest_common_prefix(&another_long_path)
3737
);
3838
}

src/code_samples/tut_paths/08.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ fn main() {
3333
let another_long_path = Path::from_components(&[component1, component2, component4]).unwrap();
3434
println!(
3535
"The longest common prefix of long_path and another_long_path is: {:?}",
36-
ideas_path.longest_common_prefix(&another_long_path)
36+
long_path.longest_common_prefix(&another_long_path)
3737
);
3838

3939
let path2 = path!("/ideas/game/music");

0 commit comments

Comments
 (0)