docs(specifier): edit const

This commit is contained in:
ruanyf
2021-10-19 09:27:21 +08:00
parent fb9f5a4075
commit 91fb6864ee

View File

@@ -17,7 +17,7 @@ PI = 3; // 报错
```c
const int arr[] = {1, 2, 3, 4};
arr[0] = 5;
arr[0] = 5; // 报错
```
上面示例中,`const`使得数组`arr`的成员无法修改。