Skip to content

Commit

Permalink
Update why-there-only-value-passing-in-java.md
Browse files Browse the repository at this point in the history
bad c++ code here
incr(*age)  -->
incr(age);
  • Loading branch information
caihj authored May 10, 2023
1 parent 8b2241b commit 5579357
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/java/basis/why-there-only-value-passing-in-java.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ int main()
{
int age = 10;
std::cout << "invoke before: " << age << "\n";
incr(*age);
incr(age);
std::cout << "invoke after: " << age << "\n";
}
```
Expand Down

0 comments on commit 5579357

Please sign in to comment.