Skip to content

Commit 6ff6b3f

Browse files
authored
text tweaks
1 parent 5e20ebd commit 6ff6b3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/scala/stdlib/Options.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ object Options extends FlatSpec with Matchers with org.scalaexercises.definition
7474
/** An alternative for pattern matching is performing collection style operations.
7575
* This is possible because an option could be looked at as a collection with either one or zero elements.
7676
*
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
7878
*/
7979
def mapOptions(res0: Option[Double], res1: Option[Double]) {
8080
val number: Option[Int] = Some(3)
@@ -88,7 +88,7 @@ object Options extends FlatSpec with Matchers with org.scalaexercises.definition
8888
/** Note that the type of result1 is now Option[Double], thanks to the scala type inference. */
8989
}
9090

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`
9292
*/
9393
def foldOptions(res0: Int, res1: Int) {
9494
val number: Option[Int] = Some(3)

0 commit comments

Comments
 (0)