Skip to content

Commit 292551a

Browse files
committed
doc: update docs/cpp.md
1 parent af2f380 commit 292551a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/cpp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ marks[0] = 92;
177177
marks[1] = 97;
178178
marks[2] = 98;
179179
// 定义和初始化
180-
std::array<int, 3> = {92, 97, 98};
180+
std::array<int, 3> marks = {92, 97, 98};
181181
// 有空成员
182182
std::array<int, 3> marks = {92, 97};
183183
std::cout << marks[2]; // 输出: 0

0 commit comments

Comments
 (0)