Skip to content

Commit 0f41f32

Browse files
authored
Correct a minor mistake in the code in lifetime-elision.md (#2814)
1 parent 7eecb9b commit 0f41f32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lifetimes/lifetime-elision.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn main() {
4242
let points = &[Point(1, 0), Point(1, 0), Point(-1, 0), Point(0, -1)];
4343
let nearest = {
4444
let query = Point(0, 2);
45-
find_nearest(points, &Point(0, 2))
45+
find_nearest(points, &query)
4646
};
4747
println!("{:?}", nearest);
4848
}

0 commit comments

Comments
 (0)