Explorar o código

Merge pull request #118 from zetaraku/master

Fix typo & Improve example (reopened)
Martin Kleppe %!s(int64=3) %!d(string=hai) anos
pai
achega
1f02651e98
Modificáronse 1 ficheiros con 4 adicións e 4 borrados
  1. 4 4
      README.md

+ 4 - 4
README.md

@@ -167,7 +167,7 @@ Combining the plus sign and brackets will turn other values into strings:
   []        +[] // "" - empty string
  +[]        +[] // "0"
   [][[]]    +[] // "undefined"
-++[][[]]    +[] // "NaN
+++[][[]]    +[] // "NaN"
 ++[[]][+[]] +[] // "1"
 ```
 
@@ -179,12 +179,12 @@ As we have strings, we can also get single characters:
   "undefined"          [  0] // "u"
 [ "undefined"    ][  0][  0] // "u"
 [  undefined +[] ][+[]][+[]] // "u"
-[  [][+[]]   +[] ][+[]][+[]] // "u"
+[  [][[]]    +[] ][+[]][+[]] // "u"
 ```
 
 ```js
-[[][+[]]+[]][+[]][           1 ] // n
-[[][+[]]+[]][+[]][ ++[[]][+[]] ] // n
+  "undefined"   [           1 ] // "n"
+[[][[]]+[]][+[]][ ++[[]][+[]] ] // "n"
 ```
 
 Since we have "NaN" and "undefined", we got the following characters: