Skip to content

Fix link in default parameter values #91

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 24, 2012
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion glossary/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion tutorials/tour/default-parameter-values.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

2 changes: 1 addition & 1 deletion tutorials/tour/named-parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down