1
0
mirror of https://github.com/Snailclimb/JavaGuide synced 2025-06-16 18:10:13 +08:00

Merge pull request #1910 from wpf008/patch-1

Update why-there-only-value-passing-in-java.md
This commit is contained in:
Guide 2023-01-31 22:44:25 +08:00 committed by GitHub
commit 2f521a9871
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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";
}
```