Skip to content

Commit 7f8330b

Browse files
committed
Merge pull request #73 from daneko/master
fix Option#fromNull javadoc
2 parents 0f0145d + 62d7932 commit 7f8330b

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
@@ -683,7 +683,7 @@ public static <T> Option<T> none() {
683683
* return none, otherwise, return the given value in some.
684684
*
685685
* @param t The unsafe nullable value.
686-
* @return If <code>t == null</code> then return it in some, otherwise, return none.
686+
* @return If <code>t == null</code> then return none, otherwise, return it in some.
687687
*/
688688
public static <T> Option<T> fromNull(final T t) {
689689
return t == null ? Option.<T>none() : some(t);
@@ -693,7 +693,7 @@ public static <T> Option<T> fromNull(final T t) {
693693
* Turns an unsafe nullable value into a safe optional value. If <code>t == null</code> then
694694
* return none, otherwise, return the given value in some.
695695
*
696-
* @return If <code>t == null</code> then return it in some, otherwise, return none.
696+
* @return If <code>t == null</code> then return none, otherwise, return it in some.
697697
*/
698698
public static <T> F<T, Option<T>> fromNull() {
699699
return t -> fromNull(t);

0 commit comments

Comments
 (0)