Skip to content

Commit 2e3f11b

Browse files
committed
docs(operator/comparison): fix text
1 parent eeb6d15 commit 2e3f11b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/operators/comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ x > '11' // false
114114
// 等同于 [2].valueOf().toString() > [11].valueOf().toString()
115115
// 即 '2' > '11'
116116

117-
{ x: 2 } >= { x: 1 } // true
117+
({ x: 2 }) >= ({ x: 1 }) // true
118118
// 等同于 ({ x: 2 }).valueOf().toString() >= ({ x: 1 }).valueOf().toString()
119119
// 即 '[object Object]' >= '[object Object]'
120120
```

0 commit comments

Comments
 (0)