Skip to content

Typo in Opt documentation #704

@Nepommuck

Description

@Nepommuck

The following PATCH fixes a typo in com.avsystem.commons.misc.Opt documentation:

Subject: [PATCH] Fix typo in `com.avsystem.commons.misc.Opt`
---
Index: core/src/main/scala/com/avsystem/commons/misc/Opt.scala
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
===================================================================
diff --git a/core/src/main/scala/com/avsystem/commons/misc/Opt.scala b/core/src/main/scala/com/avsystem/commons/misc/Opt.scala
--- a/core/src/main/scala/com/avsystem/commons/misc/Opt.scala	(revision f4033b6d7fd6a39311c5dc8c7b09477baf89b715)
+++ b/core/src/main/scala/com/avsystem/commons/misc/Opt.scala	(date 1748006276874)
@@ -51,7 +51,7 @@
   * If you need a value-class version of `Option` which differentiates between no value and `null` value,
   * use [[NOpt]].
   *
-  * WARNING: Unfortunately, using `Opt` in pattern matches turns of exhaustivity checking.
+  * WARNING: Unfortunately, using `Opt` in pattern matches turns off the exhaustivity checking.
   * Please be aware of that tradeoff.
   */
 final class Opt[+A] private(private val rawValue: Any) extends AnyVal with OptBase[A] with Serializable {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions