@@ -31,12 +31,12 @@ object Opt {
31
31
32
32
final class LazyOptOps [A ](private val opt : () => Opt [A ]) extends AnyVal {
33
33
/** When a given condition is true, evaluates the `opt` argument and returns it.
34
- * When the condition is false, `opt` is not evaluated and ` Opt.Empty` is
34
+ * When the condition is false, `opt` is not evaluated and [[ Opt.Empty ]] is
35
35
* returned.
36
36
*/
37
37
def when (cond : Boolean ): Opt [A ] = if (cond) opt() else Opt .Empty
38
38
/** Unless a given condition is true, this will evaluate the `opt` argument and
39
- * return it. Otherwise, `opt` is not evaluated and ` Opt.Empty` is returned.
39
+ * return it. Otherwise, `opt` is not evaluated and [[ Opt.Empty ]] is returned.
40
40
*/
41
41
@ inline def unless (cond : Boolean ): Opt [A ] = when(! cond)
42
42
}
@@ -45,13 +45,13 @@ object Opt {
45
45
}
46
46
47
47
/**
48
- * Like ` Option` but implemented as value class (avoids boxing) and treats `null` as no value.
48
+ * Like [[ Option ]] but implemented as value class (avoids boxing) and treats `null` as no value.
49
49
* Therefore, there is no equivalent for `Some(null)`.
50
50
*
51
- * If you need a value-class version of ` Option` which differentiates between no value and `null` value,
51
+ * If you need a value-class version of [[ Option ]] which differentiates between no value and `null` value,
52
52
* use [[NOpt ]].
53
53
*
54
- * WARNING: Unfortunately, using `Opt` in pattern matches turns of exhaustivity checking.
54
+ * WARNING: Unfortunately, using `Opt` in pattern matches turns off the exhaustivity checking.
55
55
* Please be aware of that tradeoff.
56
56
*/
57
57
final class Opt [+ A ] private (private val rawValue : Any ) extends AnyVal with OptBase [A ] with Serializable {
0 commit comments