Skip to content

Commit d546dd2

Browse files
authored
Merge pull request #724 from Philippus/issue/typo-in-collections
fixes a typo in the collections page
2 parents 38185c7 + 9aad77e commit d546dd2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ja/overviews/collections/creating-collections-from-scratch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ language: ja
1818
Iterator(1, 2, 3) // 3つの整数を返すイテレータ
1919
Set(dog, cat, bird) // 3種類の動物の集合
2020
HashSet(dog, cat, bird) // 同じ動物のハッシュ集合
21-
Map(a -> 7, 'b' -> 0) // 文字から整数へのマップ
21+
Map('a' -> 7, 'b' -> 0) // 文字から整数へのマップ
2222

2323
上の全ての行での呼び出しは内部では何らかのオブジェクトの `apply` メソッドを呼び出している。例えば、3行目は以下のように展開する:
2424

overviews/collections/creating-collections-from-scratch.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ You have syntax `List(1, 2, 3)` to create a list of three integers and `Map('A'
1818
Iterator(1, 2, 3) // An iterator returning three integers.
1919
Set(dog, cat, bird) // A set of three animals
2020
HashSet(dog, cat, bird) // A hash set of the same animals
21-
Map(a -> 7, 'b' -> 0) // A map from characters to integers
21+
Map('a' -> 7, 'b' -> 0) // A map from characters to integers
2222

2323
"Under the covers" each of the above lines is a call to the `apply` method of some object. For instance, the third line above expands to
2424

0 commit comments

Comments
 (0)