Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
eric-milles committed Dec 9, 2024
1 parent 6f715fd commit 1e41827
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ public static <T> Optional<T> mapToObj(final OptionalDouble self, final DoubleFu
}

/**
* If a value is present in the {@code OptionalInt}, returns an {@code OptionalInt}
* If a value is present in the {@code Optional}, returns an {@code OptionalInt}
* consisting of the result of applying the given function to the value or else empty.
* <pre class="groovyTestCase">
* assert !Optional.empty().mapToInt(x -&gt; 42).isPresent()
Expand All @@ -281,7 +281,7 @@ public static <T> OptionalInt mapToInt(final Optional<T> self, final ToIntFuncti
}

/**
* If a value is present in the {@code OptionalLong}, returns an {@code OptionalLong}
* If a value is present in the {@code Optional}, returns an {@code OptionalLong}
* consisting of the result of applying the given function to the value or else empty.
* <pre class="groovyTestCase">
* assert !Optional.empty().mapToLong(x -&gt; 42L).isPresent()
Expand All @@ -295,7 +295,7 @@ public static <T> OptionalLong mapToLong(final Optional<T> self, final ToLongFun
}

/**
* If a value is present in the {@code OptionalDouble}, returns an {@code OptionalDouble}
* If a value is present in the {@code Optional}, returns an {@code OptionalDouble}
* consisting of the result of applying the given function to the value or else empty.
* <pre class="groovyTestCase">
* assert !Optional.empty().mapToDouble(x -&gt; Math.PI).isPresent()
Expand Down

0 comments on commit 1e41827

Please sign in to comment.