Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit f635ba9

Browse files
committed
Merge pull request scala#4475 from smarter/fix/old-spec-links
Remove references to the old PDF version of the specification
2 parents 05672fe + 95fe641 commit f635ba9

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

src/library/scala/Array.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ object Array extends FallbackArrayBuilding {
483483
*
484484
* @author Martin Odersky
485485
* @version 1.0
486-
* @see [[http://www.scala-lang.org/docu/files/ScalaReference.pdf Scala Language Specification]], for in-depth information on the transformations the Scala compiler makes on Arrays (Sections 6.6 and 6.15 respectively.)
486+
* @see [[http://www.scala-lang.org/files/archive/spec/2.11/ Scala Language Specification]], for in-depth information on the transformations the Scala compiler makes on Arrays (Sections 6.6 and 6.15 respectively.)
487487
* @see [[http://docs.scala-lang.org/sips/completed/scala-2-8-arrays.html "Scala 2.8 Arrays"]] the Scala Improvement Document detailing arrays since Scala 2.8.
488488
* @see [[http://docs.scala-lang.org/overviews/collections/arrays.html "The Scala 2.8 Collections' API"]] section on `Array` by Martin Odersky for more information.
489489
* @define coll array

src/reflect/scala/reflect/api/Constants.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ trait Constants {
9595
* broken down or evaluated, such as "true", "0", "classOf[List]". Such values become parts of the Scala abstract
9696
* syntax tree representing the program. The constants
9797
* correspond to section 6.24 "Constant Expressions" of the
98-
* [[http://www.scala-lang.org/docu/files/ScalaReference.pdf Scala language specification]].
98+
* [[http://www.scala-lang.org/files/archive/spec/2.11/ Scala Language Specification]].
9999
*
100100
* Such constants are used to represent literals in abstract syntax trees (the [[scala.reflect.api.Trees#Literal]] node)
101101
* and literal arguments for Java class file annotations (the [[scala.reflect.api.Annotations#LiteralArgument]] class).

test/disabled/presentation/timeofday/src/timeofday.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ object timeofday {
22
class DateError extends Exception
33

44
/** Simulating properties in Scala
5-
* (example 4.2.1 in ScalaReference.pdf)
5+
* (example 4.2.1 in the Scala Language Specification)
66
*/
77
class TimeOfDayVar {
88
private var h, m, s: Int = 0
@@ -32,4 +32,4 @@ object timeofday {
3232
d.hours = 8; d./*!*/minutes = 30; d.seconds = 0
3333
d.hours/*#*/ = 25 // throws a DateError exception
3434
}
35-
}
35+
}

test/files/run/reify_timeofday.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object Test extends App {
66
class DateError extends Exception
77

88
/** Simulating properties in Scala
9-
* (example 4.2.1 in ScalaReference.pdf)
9+
* (example 4.2.1 in the Scala Language Specification)
1010
*/
1111
class TimeOfDayVar {
1212
private var h, m, s: Int = 0
@@ -39,4 +39,4 @@ object Test extends App {
3939
case e: Exception => println("Exception")
4040
}
4141
}.eval
42-
}
42+
}

0 commit comments

Comments
 (0)