Skip to content

Fixing typos and making a sentence clearer #61

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 3, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/main/scala/scalatutorial/sections/StandardLibrary.scala
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ object StandardLibrary extends ScalaTutorialSection {
* - or a `Failure`.
*
* The key difference between `None` and `Failure`s is that the latter provide
* the reason of the failure:
* the reason for the failure:
*
* {{{
* def sqrt(x: Double): Try[Double] =
Expand All @@ -249,7 +249,7 @@ object StandardLibrary extends ScalaTutorialSection {
* be decomposed using pattern matching.
*
* `Try[A]` also have `map`, `filter` and `flatMap`. They behave the same
* as with `Option[A]`, excepted that any exception that is thrown
* as with `Option[A]`, except that any exception that is thrown
* during their execution is converted into a `Failure`.
*
* == Either ==
Expand All @@ -259,8 +259,8 @@ object StandardLibrary extends ScalaTutorialSection {
* of type `B`. It can be decomposed in two cases: `Left` or `Right`.
*
* You can use one case to represent the failure and the other to represent
* the success. One difference with `Try` is that you can choose another
* type than `Throwable` to represent the exception. Another difference
* the success. What makes it different from `Try` is that you can choose a
* type other than `Throwable` to represent the exception. Another difference
* is that exceptions that occur when transforming `Either` values are
* not converted into failures.
*
Expand Down