Skip to content

Commit

Permalink
[faq] typo: 补充大括号
Browse files Browse the repository at this point in the history
  • Loading branch information
FeignClaims authored Jun 4, 2024
1 parent 086c8f5 commit 2669610
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion faq/dynamic_array/main.rst
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@
fill_n(array1, 3, 7); // 对 array1 填充应该不影响 array0, 对、对吧?
print(array0, 3); // array0: {7, 7, 7}😱
}
长度和数组本身相分离.
.. code-block:: cpp
Expand Down Expand Up @@ -1451,4 +1452,4 @@
Dynamic_array array(1000);
/* ... */
return array; // 返回时移动整个动态数组
} // 局部变量 array 被析构, 没事, 它的 array.data_ 已经是 nullptr 了
} // 局部变量 array 被析构, 没事, 它的 array.data_ 已经是 nullptr 了

0 comments on commit 2669610

Please sign in to comment.