From 3bbdca3c787a4a99fafb7959bde733cf961ffb6b Mon Sep 17 00:00:00 2001 From: Sebastien Klasa Date: Sat, 29 Feb 2020 00:09:46 +0100 Subject: [PATCH] Fix typo in Lexical Scoping Replace "Shadowed defintions" by "Shadowed definitions" --- src/main/scala/scalatutorial/sections/LexicalScopes.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/scalatutorial/sections/LexicalScopes.scala b/src/main/scala/scalatutorial/sections/LexicalScopes.scala index 49e4d723..ed9ebc37 100644 --- a/src/main/scala/scalatutorial/sections/LexicalScopes.scala +++ b/src/main/scala/scalatutorial/sections/LexicalScopes.scala @@ -81,7 +81,7 @@ object LexicalScopes extends ScalaTutorialSection { * = Lexical Scoping = * * Definitions of outer blocks are visible inside a block unless they are shadowed. - * Shadowed defintions are ones which are redefined in a lower scope. + * Shadowed definitions are ones which are redefined in a lower scope. * * Therefore, we can simplify `sqrt` by eliminating redundant occurrences of the `x` parameter, which means * the same thing everywhere: