Skip to content

Commit ad316e2

Browse files
author
Alejandro Gómez
authored
Merge pull request #43 from etrain/patch-2
Update UniformAccessPrinciple.scala
2 parents 30e55d8 + 29e8f40 commit ad316e2

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)