Skip to content

Commit e86e4a4

Browse files
authored
book: typo fixes (#262)
1 parent eca0b92 commit e86e4a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

book/zh-cn/03-runtime.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -523,8 +523,8 @@ static_cast<T&&> 传参: 右值引用
523523
static_cast<T&&> 传参: 左值引用
524524
```
525525

526-
无论传递参数为左值还是右值,普通传参都会将参数作为左值进行转发
527-
所以 `std::move` 总会接受到一个左值,从而转发调用了`reference(int&&)` 输出右值引用。
526+
无论传递参数为左值还是右值,普通传参都会将参数作为左值进行转发
527+
由于类似的原因,`std::move` 总会接受到一个左值,从而转发调用了`reference(int&&)` 输出右值引用。
528528

529529
唯独 `std::forward` 即没有造成任何多余的拷贝,同时**完美转发**(传递)了函数的实参给了内部调用的其他函数。
530530

0 commit comments

Comments
 (0)