Skip to content

Commit c1baece

Browse files
authored
Merge pull request #533 from RubenVerg/patch-2
Doc: `symbol`s are valid object keys
2 parents 9f54e19 + b841dcb commit c1baece

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/sjs-for-js/es6-to-scala-part2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ def sumProduct(s: Seq[Int]): (Int, Int) = {
250250
## Map
251251

252252
A {% scaladoc collection.Map %} consists of pairs of keys and values. Both keys and values can be of any valid Scala type, unlike in JavaScript
253-
where an `Object` may only contain `string` keys (the new ES6 {% jsdoc Map %} allows using other types as keys, but supports only
253+
where an `Object` may only contain `string` or `symbol` keys (the new ES6 {% jsdoc Map %} allows using other types as keys, but supports only
254254
referential equality for comparing keys).
255255

256256
JavaScript `Object` doesn't really have methods for using it as a map, although you can iterate over the keys

0 commit comments

Comments
 (0)