8000 add comments to example in README. · powercoder23/immutable-js@d6086b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit d6086b3

Browse files
committed
add comments to example in README.
Closes immutable-js#345
1 parent d7319e0 commit d6086b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,9 @@ has changed.
123123
```javascript
124124
var map1 = Immutable.Map({a:1, b:2, c:3});
125125
var map2 = map1.set('b', 2);
126-
assert(map1 === map2);
126+
assert(map1 === map2); // no change
127127
var map3 = map1.set('b', 50);
128-
assert(map1 !== map3);
128+
assert(map1 !== map3); // change
129129
```
130130

131131
If an object is immutable, it can be "copied" simply by making another reference

0 commit comments

Comments
 (0)
0