Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions concepts/references/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ int& savings{main_acc};

// try to reseat savings to use main account
savings = side_acc;
// savings and main_acc are now -20
// as this uses the **value** of side_acc
// => compiler error, references binding once set can not be changed
savings += 20;
// savings and main_acc are now 0, side_acc is stil -20

Expand Down