Skip to content

Commit

Permalink
Merge pull request EzoeRyou#144 from kimonohanger/patch-9
Browse files Browse the repository at this point in the history
fix typo
  • Loading branch information
EzoeRyou authored Nov 14, 2019
2 parents 347e878 + 51d3777 commit e496251
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 036-move.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ e = source ;
コピーにはコピー先とコピー元がある。
~~~cpp
std::vector<int> v = {1,2,3} ;
std::vector<int> source = {1,2,3} ;
std::vector<int> destination = source ;
// destinationは{1,2,3}
~~~
Expand All @@ -46,7 +46,7 @@ e = std::move(source) ;
ムーブにもムーブ先とムーブ元がある。
~~~cpp
std::vector<int> v = {1,2,3} ;
std::vector<int> source = {1,2,3} ;
// destinationはムーブ先
// sourceはムーブ元
std::vector<int> destination = std::move(source) ;
Expand Down

0 comments on commit e496251

Please sign in to comment.