Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
documentation fixes
  • Loading branch information
Nat Pryce committed Jul 19, 2010
1 parent 0f3b4b5 commit 9c9abe8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README
Expand Up @@ -74,13 +74,13 @@ individual instances. For example, the otherwise method:

T otherwise(T defaultValue);

will return the Maybe's value if it exists one and the defaultValue if
there is not. E.g.
will return the Maybe's value if it is known and the defaultValue if it is not.
E.g.

assertThat(unknown().otherwise(""), equalTo(""));
assertThat(definitely("foo").otherwise(""), equalTo("foo"));

Otherwise is overloaded to take a Maybe as a default:
Otherwise is overloaded to take a Maybe<T> as a default:

Maybe<T> otherwise(Maybe<T> maybeDefaultValue);

Expand Down

0 comments on commit 9c9abe8

Please sign in to comment.