Skip to content

Commit 29e8f40

Browse files
authored
Update UniformAccessPrinciple.scala
Correcting confusing grammatical error.
1 parent 30e55d8 commit 29e8f40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/scala/stdlib/UniformAccessPrinciple.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ object UniformAccessPrinciple extends FlatSpec with Matchers with org.scalaexerc
99

1010
/** The Scala language implements a programming concept known as the [Uniform Access Principle](http://en.wikipedia.org/wiki/Uniform_access_principle) which was first put forth by Bertrand Meyer, inventor of the Eiffel programming language.
1111
*
12-
* This principle states that variables and parameterless functions should be accessed using the same syntax. Scala supports this principle by not allowing parentheses to be placed at call sites of parameterless functions. As a result, a parameterless function definition can be changed to a val, or vice versa, without affecting client code.
12+
* This principle states that variables and parameterless functions should be accessed using the same syntax. Scala supports this principle by allowing parentheses to not be placed at call sites of parameterless functions. As a result, a parameterless function definition can be changed to a val, or vice versa, without affecting client code.
1313
*
1414
*/
1515
def uniformAccessPrincipleUniformAccessPrinciple(res0: Int, res1: Int) {

0 commit comments

Comments
 (0)