Skip to content

Commit 7cce5c1

Browse files
committed
Merge pull request DrkSephy#6 from alFReD-NSH/patch-1
Fix symbols example
2 parents 1149d76 + e59801d commit 7cce5c1

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
@@ -559,8 +559,8 @@ const key = Symbol();
559559
const keyTwo = Symbol();
560560
const object = {};
561561

562-
object.key = 'Such magic.';
563-
object.keyTwo = 'Much Uniqueness'
562+
object[key] = 'Such magic.';
563+
object[keyTwo] = 'Much Uniqueness'
564564

565565
// Two Symbols will never have the same value
566566
>> key === keyTwo

0 commit comments

Comments
 (0)