From c4ac09c72480e42c82f1936ff145b0c23671483e Mon Sep 17 00:00:00 2001 From: Tengfei Niu Date: Fri, 13 Nov 2020 18:05:57 +0800 Subject: [PATCH] fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 推到 -> 推导 --- book/zh-cn/03-runtime.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book/zh-cn/03-runtime.md b/book/zh-cn/03-runtime.md index 023b6ef4..e4d02d7a 100644 --- a/book/zh-cn/03-runtime.md +++ b/book/zh-cn/03-runtime.md @@ -550,7 +550,7 @@ constexpr _Tp&& forward(typename std::remove_reference<_Tp>::type&& __t) noexcep 可见 `std::forward` 的原理在于巧妙的利用了模板类型推导中产生的差异。 这时我们能回答这样一个问题:为什么在使用循环语句的过程中,`auto&&` 是最安全的方式? -因为当 `auto` 被推到为不同的左右引用时,与 `&&` 的坍缩组合是完美转发。 +因为当 `auto` 被推导为不同的左右引用时,与 `&&` 的坍缩组合是完美转发。 ## 总结