This is an automated email from the ASF dual-hosted git repository.

hepin pushed a commit to branch 1.3.x-typo
in repository https://gitbox.apache.org/repos/asf/pekko.git

commit 2361cf970993a4f46dec1e539414bd4bf3010fec
Author: He-Pin <[email protected]>
AuthorDate: Sat Nov 8 13:22:29 2025 +0800

    chore: Fix typo of OptionVal's scaladoc
---
 actor/src/main/scala/org/apache/pekko/util/OptionVal.scala | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/actor/src/main/scala/org/apache/pekko/util/OptionVal.scala 
b/actor/src/main/scala/org/apache/pekko/util/OptionVal.scala
index 41abfd18fe..7451042766 100644
--- a/actor/src/main/scala/org/apache/pekko/util/OptionVal.scala
+++ b/actor/src/main/scala/org/apache/pekko/util/OptionVal.scala
@@ -49,13 +49,12 @@ private[pekko] object OptionVal {
 private[pekko] final class OptionVal[+A](val x: A) extends AnyVal {
 
   /**
-   * Returns true if the option is `OptionVal.None`, false otherwise.
+   * Returns `true` if the option is `OptionVal.None`, `false` otherwise.
    */
-  def isEmpty: Boolean =
-    x == null
+  def isEmpty: Boolean = x == null
 
   /**
-   * Returns true if the option is `OptionVal.None`, false otherwise.
+   * Returns `false` if the option is `OptionVal.None`, `true` otherwise.
    */
   def isDefined: Boolean = !isEmpty
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to