Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit eeea5ef

Browse files
authored
Update why-there-only-value-passing-in-java.md
1 parent 96a46f9 commit eeea5ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎docs/java/basis/why-there-only-value-passing-in-java.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ int main()
177177
{
178178
int age = 10;
179179
std::cout << "invoke before: " << age << "\n";
180-
incr(age);
180+
incr(*age);
181181
std::cout << "invoke after: " << age << "\n";
182182
}
183183
```

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /