Skip to content

Commit 224a8e7

Browse files
committed
修正语法错误
1 parent 02ae210 commit 224a8e7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

quickstart/struct-enum.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ let mut point = Point { x: 0, y: 0 };
2020
// tuple structs
2121
struct Color(u8, u8, u8);
2222
let android_green = Color(0xa4, 0xc6, 0x39);
23-
let (red, green, blue) = android_green;
23+
let Color(red, green, blue) = android_green;
2424

2525
// A tuple struct’s constructors can be used as functions.
2626
struct Digit(i32);

0 commit comments

Comments
 (0)