8000 fix wrong describe 应用->引用 · amgm-coder/toBeTopJavaer@91e39b9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 91e39b9

Browse files
committed
fix wrong describe 应用->引用
1 parent 2459fac commit 91e39b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/basics/object-oriented/why-pass-by-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159

160160
<img src="http://www.hollischuang.com/wp-content/uploads/2018/04/pass21.png" alt="pass2" width="832" height="732" class="aligncenter size-full wp-image-2307" />
161161

162-
在参数传递的过程中,实际参数的地址`0X1213456`被拷贝给了形参。这个过程其实就是值传递,只不过传递的值得内容是对象的应用
162+
在参数传递的过程中,实际参数的地址`0X1213456`被拷贝给了形参。这个过程其实就是值传递,只不过传递的值得内容是对象的引用
163163

164164
那为什么我们改了user中的属性的值,却对原来的user产生了影响呢?
165165

0 commit comments

Comments
 (0)
0