From 36613233ddeca13bb17dd53602cf4c6ad34960dc Mon Sep 17 00:00:00 2001 From: Denis T Date: Sun, 5 Mar 2017 11:31:17 +0300 Subject: [PATCH] small typo fixed --- src/main/scala/stdlib/CaseClasses.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/scala/stdlib/CaseClasses.scala b/src/main/scala/stdlib/CaseClasses.scala index 3292dfe7..a3072d6c 100644 --- a/src/main/scala/stdlib/CaseClasses.scala +++ b/src/main/scala/stdlib/CaseClasses.scala @@ -81,7 +81,7 @@ object CaseClasses extends FlatSpec with Matchers with org.scalaexercises.defini * } * }}} * - * In our example, the function `print` is expressed as a pattern matching statement starting with the `match` keyword and consisting of sequences of `case Pattern => Body` clauses. + * In our example, the function `printTerm` is expressed as a pattern matching statement starting with the `match` keyword and consisting of sequences of `case Pattern => Body` clauses. * * The program above also defines a function `isIdentityFun` which checks if a given term corresponds to a simple identity function. This example uses deep patterns and guards. After matching a pattern with a given value, the guard (defined after the keyword `if`) is evaluated. If it returns `true`, the match succeeds; otherwise, it fails and the next pattern will be tried. *