Skip to content

Commit

Permalink
fix Issue 6839 - documentation for opAssign incorrect
Browse files Browse the repository at this point in the history
  • Loading branch information
WalterBright committed Jan 21, 2012
1 parent 2a18194 commit 3628a19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions struct.dd
Original file line number Diff line number Diff line change
Expand Up @@ -667,13 +667,13 @@ t = s; // t is assigned from s
)

---
t = S.opAssign(s);
t.opAssign(s);
---

$(P where $(CODE opAssign) is a member function of S:)

---
S* opAssign(S s)
S* opAssign(ref const S s)
{ ... bitcopy *this into tmp ...
... bitcopy s into *this ...
... call destructor on tmp ...
Expand Down

0 comments on commit 3628a19

Please sign in to comment.