We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4206ad9 commit 7c2ebccCopy full SHA for 7c2ebcc
docs/_spec/06-expressions.md
@@ -967,7 +967,7 @@ x => x // The identity function
967
968
f => g => x => f(g(x)) // Curried function composition
969
970
-(x: Int,y: Int) => x + y // A summation function
+(x: Int, y: Int) => x + y // A summation function
971
972
() => { count += 1; count } // The function which takes an
973
// empty parameter list ´()´,
docs/_spec/12-the-scala-standard-library.md
@@ -621,7 +621,7 @@ object Predef {
621
622
def assume(assumption: Boolean, message: => Any) {
623
if (!assumption)
624
- throw new IllegalArgumentException(message.toString)
+ throw new IllegalArgumentException("assumption failed: " + message.toString)
625
}
626
627
def require(requirement: Boolean) {
0 commit comments