diff --git a/glossary/index.md b/glossary/index.md index 361ed02ca8..7d9980e085 100644 --- a/glossary/index.md +++ b/glossary/index.md @@ -165,7 +165,7 @@ _Invariant_ is used in two ways. It can mean a property that always holds true w You can _invoke_ a method, function, or closure _on_ arguments, meaning its body will be executed with the specified arguments. * #### JVM -The _JVM_ is the Java Virtual Machine, or [runtime}(#runtime), that hosts a running Scala program. +The _JVM_ is the Java Virtual Machine, or [runtime](#runtime), that hosts a running Scala program. * #### literal `1`, "`One`", and `(x: Int) => x + 1` are examples of _literals_. A literal is a shorthand way to describe an object, where the shorthand exactly mirrors the structure of the created object. diff --git a/tutorials/tour/default-parameter-values.md b/tutorials/tour/default-parameter-values.md index 2838e6a2ce..7c7a59d041 100644 --- a/tutorials/tour/default-parameter-values.md +++ b/tutorials/tour/default-parameter-values.md @@ -61,5 +61,5 @@ Scala adds direct support for this: // named arguments val m4 = new HashMap[String,Int](loadFactor = 0.8) -Note how we can take advantage of *any* default value by using [named parameters]({{ site.baseurl }}/tutorials/tour/named_parameters.html). +Note how we can take advantage of *any* default value by using [named parameters]({{ site.baseurl }}/tutorials/tour/named-parameters.html). diff --git a/tutorials/tour/named-parameters.md b/tutorials/tour/named-parameters.md index 82c0c21eee..ebe134d493 100644 --- a/tutorials/tour/named-parameters.md +++ b/tutorials/tour/named-parameters.md @@ -22,7 +22,7 @@ When calling methods and functions, you can use the name of the variables explic // Prints "John Smith" Note that once you are using parameter names in your calls, the order doesn't matter, so long as all parameters are named. This -feature works well with [default parameter values]({{ site.baseurl }}/tutorials/tour/default_parameter_values.html): +feature works well with [default parameter values]({{ site.baseurl }}/tutorials/tour/default-parameter-values.html): def printName(first:String = "John", last:String = "Smith") = { println(first + " " + last)