Skip to content

Commit ecb7d92

Browse files
authored
Update README.md
1 parent e91b43f commit ecb7d92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ Can we do that? Yes we can.
132132
#### `intern`
133133

134134
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).
136136
That is to say if they look like each other, then they are each other.
137137

138138
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

Comments
 (0)