Skip to content

Commit 62d7932

Browse files
committed
fix Option#fromNull javadoc
1 parent 7152326 commit 62d7932

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

core/src/main/java/fj/data/Option.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ public static <T> Option<T> none() {
695695
* return none, otherwise, return the given value in some.
696696
*
697697
* @param t The unsafe nullable value.
698-
* @return If <code>t == null</code> then return it in some, otherwise, return none.
698+
* @return If <code>t == null</code> then return none, otherwise, return it in some.
699699
*/
700700
public static <T> Option<T> fromNull(final T t) {
701701
return t == null ? Option.<T>none() : some(t);
@@ -705,7 +705,7 @@ public static <T> Option<T> fromNull(final T t) {
705705
* Turns an unsafe nullable value into a safe optional value. If <code>t == null</code> then
706706
* return none, otherwise, return the given value in some.
707707
*
708-
* @return If <code>t == null</code> then return it in some, otherwise, return none.
708+
* @return If <code>t == null</code> then return none, otherwise, return it in some.
709709
*/
710710
public static <T> F<T, Option<T>> fromNull() {
711711
return new F<T, Option<T>>() {

0 commit comments

Comments
 (0)