From ec55fe8ee81b3e4532282c2b139914770c9d2a2f Mon Sep 17 00:00:00 2001 From: Slawomir Siudek Date: Thu, 24 Jun 2021 10:12:45 +0200 Subject: [PATCH] Fix link to external scala spec pdf --- sections/2-language-rules.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sections/2-language-rules.md b/sections/2-language-rules.md index 714c678..5c8da76 100644 --- a/sections/2-language-rules.md +++ b/sections/2-language-rules.md @@ -25,7 +25,7 @@ def action = Action { request => In Scala, a `return` statement inside a nested anonymous function is implemented by throwing and catching a `NonLocalReturnException`. It says so in the -[Scala Language Specification, section 6.20](http://www.scala-lang.org/docu/files/ScalaReference.pdf). +[Scala Language Specification, section 6.20](https://scala-lang.org/files/archive/spec/2.13/spec.pdf). Besides, `return` is anti structural programming, as functions can be described with multiple exit points and if you need `return`, like in