Skip to content

Commit b2d9ae4

Browse files
committed
Fixing potential links into docs.scala-lang
1 parent 97861aa commit b2d9ae4

33 files changed

+67
-1
lines changed

_tour/abstract-types.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ num: 23
1010
next-page: compound-types
1111
previous-page: inner-classes
1212
prerequisite-knowledge: variance, upper-type-bound
13+
14+
redirect_from: "/tutorials/tour/abstract-types.html"
1315
---
1416

1517
Traits and abstract classes can have an abstract type member. This means that the concrete implementations define the actual type. Here's an example:

_tour/annotations.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ partof: scala-tour
99
num: 32
1010
next-page: default-parameter-values
1111
previous-page: by-name-parameters
12+
13+
redirect_from: "/tutorials/tour/annotations.html"
1214
---
1315

1416
Annotations associate meta-information with definitions. For example, the annotation `@deprecated` before a method causes the compiler to print a warning if the method is used.

_tour/basics.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ partof: scala-tour
99
num: 2
1010
next-page: unified-types
1111
previous-page: tour-of-scala
12+
13+
redirect_from: "/tutorials/tour/basics.html"
1214
---
1315

1416
In this page, we will cover basics of Scala.

_tour/by-name-parameters.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ partof: scala-tour
99
num: 31
1010
next-page: annotations
1111
previous-page: operators
12+
13+
redirect_from: "/tutorials/tour/by-name-parameters.html"
1214
---
1315

1416
_By-name parameters_ are only evaluated when used. They are in contrast to _by-value parameters_. To make a parameter called by-name, simply prepend `=>` to its type.

_tour/case-classes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ num: 11
1010
next-page: pattern-matching
1111
previous-page: currying
1212
prerequisite-knowledge: classes, basics, mutability
13+
14+
redirect_from: "/tutorials/tour/case-classes.html"
1315
---
1416

1517
Case classes are like regular classes with a few key differences which we will go over. Case classes are good for modeling immutable data. In the next step of the tour, we'll see how they are useful in [pattern matching](pattern-matching.html).

_tour/classes.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ next-page: traits
1111
previous-page: unified-types
1212
topics: classes
1313
prerequisite-knowledge: no-return-keyword, type-declaration-syntax, string-interpolation, procedures
14+
15+
redirect_from: "/tutorials/tour/classes.html"
1416
---
1517

1618
Classes in Scala are blueprints for creating objects. They can contain methods,

_tour/compound-types.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ partof: scala-tour
99
num: 24
1010
next-page: self-types
1111
previous-page: abstract-types
12+
13+
redirect_from: "/tutorials/tour/compound-types.html"
1214
---
1315

1416
Sometimes it is necessary to express that the type of an object is a subtype of several other types. In Scala this can be expressed with the help of *compound types*, which are intersections of object types.

_tour/currying.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ partof: scala-tour
99
num: 10
1010
next-page: case-classes
1111
previous-page: nested-functions
12+
13+
redirect_from: "/tutorials/tour/currying.html"
1214
---
1315

1416
Methods may define multiple parameter lists. When a method is called with a fewer number of parameter lists, then this will yield a function taking the missing parameter lists as its arguments.

_tour/default-parameter-values.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ num: 33
1010
next-page: named-arguments
1111
previous-page: annotations
1212
prerequisite-knowledge: named-arguments, function syntax
13+
14+
redirect_from: "/tutorials/tour/default-parameter-values.html"
1315
---
1416

1517
Scala provides the ability to give parameters default values that can be used to allow a caller to omit those parameters.

_tour/extractor-objects.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ partof: scala-tour
99
num: 16
1010
next-page: for-comprehensions
1111
previous-page: regular-expression-patterns
12+
13+
redirect_from: "/tutorials/tour/extractor-objects.html"
1214
---
1315

1416
An extractor object is an object with an `unapply` method. Whereas the `apply` method is like a constructor which takes arguments and creates an object, the `unapply` takes an object and tries to give back the arguments. This is most often used in pattern matching and partial functions.

0 commit comments

Comments
 (0)