From 6e7fd589921b430eca2a0abd8c1f764f1bf25dd0 Mon Sep 17 00:00:00 2001 From: Paul Louth Date: Thu, 19 Feb 2015 16:12:53 +0000 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index fbc3934..c8fc6ff 100644 --- a/README.md +++ b/README.md @@ -5,8 +5,8 @@ csharp-monad A C# library of monads and a full set of parser combinators based on the Haskell Parsec library. -* `Either` -* `EitherStrict` +* `Either` +* `EitherStrict` * `IO` * `Option` * `OptionStrict` @@ -92,18 +92,18 @@ __Example__ First we set up some methods that return either a `Left` or a `Right`. In this case `Two()` returns a `Right`, and `Error()` returns a `Left`. ```C# - public Either Two() + public Either Two() { return () => 2; } - public Either Error() + public Either Error() { return () => "Error!!"; } ``` -Below are some examples of using `Either`. Note, whenever a `Left` is returned it cancels the entire bind operation, so any functions after the `Left` will not be processed. +Below are some examples of using `Either`. Note, whenever a `Left` is returned it cancels the entire bind operation, so any functions after the `Left` will not be processed. ```C# var r =