Skip to content

Commit 7c2ebcc

Browse files
committed
Small fixes
1 parent 4206ad9 commit 7c2ebcc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/_spec/06-expressions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -967,7 +967,7 @@ x => x // The identity function
967967

968968
f => g => x => f(g(x)) // Curried function composition
969969

970-
(x: Int,y: Int) => x + y // A summation function
970+
(x: Int, y: Int) => x + y // A summation function
971971

972972
() => { count += 1; count } // The function which takes an
973973
// empty parameter list ´()´,

docs/_spec/12-the-scala-standard-library.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -621,7 +621,7 @@ object Predef {
621621

622622
def assume(assumption: Boolean, message: => Any) {
623623
if (!assumption)
624-
throw new IllegalArgumentException(message.toString)
624+
throw new IllegalArgumentException("assumption failed: " + message.toString)
625625
}
626626

627627
def require(requirement: Boolean) {

0 commit comments

Comments
 (0)