Skip to content

Commit 8f032bf

Browse files
authored
Fix typo for structs.md (#153)
1 parent 8347bc3 commit 8f032bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/custom_types/structs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn main() {
5252
// 这样可以用到之前的 point 的字段
5353
let bottom_right = Point { x: 5.2, ..point };
5454
55-
// `new_point.y` 与 `point.y` 一样,因为这个字段就是从 `point` 中来的
55+
// `bottom_right.y` 与 `point.y` 一样,因为这个字段就是从 `point` 中来的
5656
println!("second point: ({}, {})", bottom_right.x, bottom_right.y);
5757
5858
// 使用 `let` 绑定来解构 point

0 commit comments

Comments
 (0)