File tree 1 file changed +4
-4
lines changed
src/main/scala/scalatutorial/sections
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ object StandardLibrary extends ScalaTutorialSection {
235
235
* - or a `Failure`.
236
236
*
237
237
* The key difference between `None` and `Failure`s is that the latter provide
238
- * the reason of the failure:
238
+ * the reason for the failure:
239
239
*
240
240
* {{{
241
241
* def sqrt(x: Double): Try[Double] =
@@ -249,7 +249,7 @@ object StandardLibrary extends ScalaTutorialSection {
249
249
* be decomposed using pattern matching.
250
250
*
251
251
* `Try[A]` also have `map`, `filter` and `flatMap`. They behave the same
252
- * as with `Option[A]`, excepted that any exception that is thrown
252
+ * as with `Option[A]`, except that any exception that is thrown
253
253
* during their execution is converted into a `Failure`.
254
254
*
255
255
* == Either ==
@@ -259,8 +259,8 @@ object StandardLibrary extends ScalaTutorialSection {
259
259
* of type `B`. It can be decomposed in two cases: `Left` or `Right`.
260
260
*
261
261
* You can use one case to represent the failure and the other to represent
262
- * the success. One difference with `Try` is that you can choose another
263
- * type than `Throwable` to represent the exception. Another difference
262
+ * the success. What makes it different from `Try` is that you can choose a
263
+ * type other than `Throwable` to represent the exception. Another difference
264
264
* is that exceptions that occur when transforming `Either` values are
265
265
* not converted into failures.
266
266
*
You can’t perform that action at this time.
0 commit comments