Skip to content

Commit

Permalink
fix typo (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
Elite-stay authored Oct 23, 2024
1 parent 59da632 commit c6e6fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posts/169.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ status() 支持两种 分别是普通引用和万能引用,及时的把值复
这种场景我以前也介绍过,但是不单单这么简单,这个PR还改动了别的地方
```cpp
```diff
/// Helper method for implementing Status returning functions in terms of semantically
/// equivalent Result returning functions. For example:
///
Expand All @@ -68,7 +68,7 @@ status() 支持两种 分别是普通引用和万能引用,及时的把值复
Status Value(U* out) && {
if (!ok()) {
- return status();
+ return std::move(*this).status();
+ return std::move(*this).status();
}
*out = U(MoveValueUnsafe());
return Status::OK();
Expand Down

0 comments on commit c6e6fa1

Please sign in to comment.