Skip to content

Commit 541ebf5

Browse files
Fix a spelling and a grammar error (#185)
1 parent 68a3864 commit 541ebf5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/scalatutorial/sections/LexicalScopes.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ object LexicalScopes extends ScalaTutorialSection {
9292
* = Lexical Scoping =
9393
*
9494
* Definitions of outer blocks are visible inside a block unless they are shadowed.
95-
* Shadowed defintions are ones which are redefined in a lower scope.
95+
* Shadowed definitions are ones which are redefined in a lower scope.
9696
*
9797
* Therefore, we can simplify `sqrt` by eliminating redundant occurrences of the `x` parameter, which means
9898
* the same thing everywhere:
@@ -127,7 +127,7 @@ object LexicalScopes extends ScalaTutorialSection {
127127
*
128128
* but most people would omit the semicolon.
129129
*
130-
* On the other hand, if there are more than one statements on a line, they need to be
130+
* On the other hand, if there is more than one statement on a line, they need to be
131131
* separated by semicolons:
132132
*
133133
* {{{

0 commit comments

Comments
 (0)