Skip to content

Commit 6a3d8d7

Browse files
authored
book: typo fixes (#141)
1 parent c239ef1 commit 6a3d8d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

book/zh-cn/03-runtime.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ constexpr _Tp&& forward(typename std::remove_reference<_Tp>::type&& __t) noexcep
550550
可见 `std::forward` 的原理在于巧妙的利用了模板类型推导中产生的差异。
551551
552552
这时我们能回答这样一个问题:为什么在使用循环语句的过程中,`auto&&` 是最安全的方式?
553-
因为当 `auto` 被推到为不同的左右引用时,与 `&&` 的坍缩组合是完美转发。
553+
因为当 `auto` 被推导为不同的左右引用时,与 `&&` 的坍缩组合是完美转发。
554554
555555
## 总结
556556

0 commit comments

Comments
 (0)