Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bf99f64

Browse files
committed
Fixes typo.
1 parent 95e61ea commit bf99f64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tutorials/tour/default-parameter-values.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,8 @@ Scala adds direct support for this:
5959
// overriding both
6060
val m3 = new HashMap[String,Int](20,0.8f)
6161

62-
// override only the loadFactory via
62+
// override only the loadFactor via
6363
// named arguments
6464
val m4 = new HashMap[String,Int](loadFactor = 0.8f)
6565

6666
Note how we can take advantage of *any* default value by using [named parameters]({{ site.baseurl }}/tutorials/tour/named-parameters.html).
67-

0 commit comments

Comments
 (0)