From 9ded3a2967fdf80d500c8553102c31ec030d9e9e Mon Sep 17 00:00:00 2001 From: abuco <52994294+abu-co@users.noreply.github.com> Date: Sun, 24 Jan 2021 18:42:14 +1100 Subject: [PATCH] pdf: fix rendering issue due to line break (#170) Fixes #149 --- book/zh-cn/01-intro.md | 1 + 1 file changed, 1 insertion(+) diff --git a/book/zh-cn/01-intro.md b/book/zh-cn/01-intro.md index 94a9a1b..80e324c 100644 --- a/book/zh-cn/01-intro.md +++ b/book/zh-cn/01-intro.md @@ -25,6 +25,7 @@ InstalledDir: /Library/Developer/CommandLineTools/usr/bin > **注意**:弃用并非彻底不能用,只是用于暗示程序员这些特性将从未来的标准中消失,应该尽量避免使用。但是,已弃用的特性依然是标准库的一部分,并且出于兼容性的考虑,大部分特性其实会『永久』保留。 - **不再允许字符串字面值常量赋值给一个 `char *`。如果需要用字符串字面值常量赋值和初始化一个 `char *`,应该使用 `const char *` 或者 `auto`。** + ```cpp char *str = "hello world!"; // 将出现弃用警告 ```