File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ object Options extends FlatSpec with Matchers with org.scalaexercises.definition
74
74
/** An alternative for pattern matching is performing collection style operations.
75
75
* This is possible because an option could be looked at as a collection with either one or zero elements.
76
76
*
77
- * One of these operations is `map`. this operation allows to map the inner value to a different type while preserving the option
77
+ * One of these operations is `map`. This operation allows us to map the inner value to a different type while preserving the option
78
78
*/
79
79
def mapOptions (res0 : Option [Double ], res1 : Option [Double ]) {
80
80
val number : Option [Int ] = Some (3 )
@@ -88,7 +88,7 @@ object Options extends FlatSpec with Matchers with org.scalaexercises.definition
88
88
/** Note that the type of result1 is now Option[Double], thanks to the scala type inference. */
89
89
}
90
90
91
- /** Another operation is `fold`. this operation will extract the value from the option, or provide a default if the value is `None`
91
+ /** Another operation is `fold`. This operation will extract the value from the option, or provide a default if the value is `None`
92
92
*/
93
93
def foldOptions (res0 : Int , res1 : Int ) {
94
94
val number : Option [Int ] = Some (3 )
You can’t perform that action at this time.
0 commit comments