You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -132,7 +132,7 @@ Can we do that? Yes we can.
132
132
#### `intern`
133
133
134
134
The value returned by `intern`is a strong reference to a real String.
135
-
But unlike for normal use of Strings, if `s1==s1` then `intern(s1)===intern(s2)` i.e. strings are that content equal, they are reference equal (once interned).
135
+
But unlike for normal use of Strings, if `s1==s1` then `pointer(intern(s1)) == pointer(intern(s2))` i.e. strings are that content equal, they are reference equal (once interned).
136
136
That is to say if they look like each other, then they are each other.
137
137
138
138
When a string is interned is created we check to see if there already is an interned string with that content, and if so return it.
0 commit comments