Skip to content

Commit a2c8ead

Browse files
committed
fix link
1 parent 5bc7390 commit a2c8ead

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

hand-written.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Thank you very much to all contributors that helped realize this Scala release!
4949

5050
## Binary compatibility
5151

52-
Since Scala 2.10, minor releases of Scala are binary compatible with each other. We maintain [this policy](http://docs.scala-lang.org/overviews/core/binary-compatibility.html) for 2.12.x.
52+
Since Scala 2.10, minor releases of Scala are binary compatible with each other. We maintain [this policy](http://docs.scala-lang.org/overviews/core/binary-compatibility-of-scala-releases.html) for 2.12.x.
5353

5454
Although Scala 2.11 and 2.12 are mostly source compatible to facilitate cross-building, they are not *binary* compatible. This allows us to keep improving the Scala compiler and standard library.
5555

@@ -65,7 +65,7 @@ Scala 2.12 is all about making optimal use of Java 8's new features (and thus ge
6565

6666
The new encodings for traits and lambdas lead to significantly smaller JAR files. For example, for scalatest 3.0.0, the jar size went from 9.9M in 2.11.8 to 6.7M.
6767

68-
Except for the breaking changes listed below, code that compiles on 2.11.x without deprecation warnings should compile on 2.12.x, unless you use experimental APIs such as reflection. If you find incompatibilities that are not [listed below](#breaking-changes), please [file an issue](https://issues.scala-lang.org).
68+
Except for the breaking changes listed below, code that compiles on 2.11.x without deprecation warnings should compile on 2.12.x, unless you use experimental APIs such as reflection. If you find incompatibilities that are not [listed below](#breaking-changes), please [file an issue](https://issues.scala-lang.org).
6969

7070
Thanks to source compatibility, cross-building is a one-line change to most sbt builds. Where needed, sbt provides support for [version-specific source folders](http://www.scala-sbt.org/0.13/docs/sbt-0.13-Tech-Previews.html#Cross-version+support+for+Scala+sources) out of the box.
7171

@@ -84,14 +84,14 @@ The Scala 2.12 type checker accepts a function literal as a valid expression for
8484

8585
scala> val runRunnable: Runnable = () => println("Run!")
8686
runRunnable: Runnable = $$Lambda$1073/754978432@7cf283e1
87-
87+
8888
scala> runRunnable.run()
8989
Run!
9090

9191
Note that only lambda expressions are converted to SAM type instances, not arbitrary expressions of `FunctionN` type:
9292

9393
scala> val f = () => println("Faster!")
94-
94+
9595
scala> val fasterRunnable: Runnable = f
9696
<console>:12: error: type mismatch;
9797
found : () => Unit
@@ -115,7 +115,7 @@ Thanks to an improvement in type-checking, the parameter type in a lambda expres
115115
| def m(f: Int => String) = 0
116116
| def m(f: MyFun) = 1
117117
| }
118-
118+
119119
scala> T.m(x => x.toString)
120120
res0: Int = 0
121121

@@ -343,7 +343,7 @@ Note that SAM conversion only applies to lambda expressions, not to arbitrary ex
343343
val fun = () => 2 // Type Function0[Int]
344344
val sam2: MySam = fun // Uses implicit conversion
345345
sam2.i() // Returns 1
346-
346+
347347

348348
### SAM conversion in overloading resolution
349349

@@ -353,9 +353,9 @@ In order to improve source compatibility, overloading resolution has been adapte
353353
| def m(f: () => Unit) = 0
354354
| def m(r: Runnable) = 1
355355
| }
356-
356+
357357
scala> val f = () => ()
358-
358+
359359
scala> T.m(f)
360360
res0: Int = 0
361361

@@ -370,7 +370,7 @@ While the adjustment to overloading resolution improves compatibility, there als
370370
| def m(r: Runnable, s: String) = 1
371371
| }
372372
defined object T
373-
373+
374374
scala> T.m(() => (), "")
375375
<console>:13: error: ambiguous reference to overloaded definition
376376

0 commit comments

Comments
 (0)