diff --git a/notes/ch02.md b/notes/ch02.md index b482467..dca8a0f 100644 --- a/notes/ch02.md +++ b/notes/ch02.md @@ -156,7 +156,7 @@ ### 初始化和const - const对象**必须初始化**,且**不能被改变**。 -- const变量默认不能被其他文件访问,非要访问,必须在指定const定义之前加extern。要想在多个文件中使用const变量共享,定义和声明都加const关键字即可。 +- const变量默认不能被其他文件访问,非要访问,必须在指定const定义之前加extern。要想在多个文件中使用const变量共享,定义和声明都加extern关键字即可。 ### const的引用 @@ -244,4 +244,4 @@ strct Sale_data{ ... } #endif -``` \ No newline at end of file +```