Skip to content

Commit 129b6c4

Browse files
authored
Update README.md
1 parent d631153 commit 129b6c4

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

README.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,8 @@ $set = new Set();
7373
$set->add('a');
7474
// $set => ['a']
7575

76-
$set->add('a')
77-
->add(1);
76+
$set->add(1);
7877
// $set => ['a', 1]
79-
80-
$set->add('1');
81-
// $set => ['a', 1, '1']
8278
````
8379

8480
As `Sets` implements the `ArrayAccess` interface, you can also add values as you would with a standard Array.

0 commit comments

Comments
 (0)