Skip to content

Commit 8e7bcc6

Browse files
committed
Master branch
1 parent d7c5bbb commit 8e7bcc6

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
# Enumeratum [![Build Status](https://travis-ci.org/lloydmeta/enumeratum.svg)](https://travis-ci.org/lloydmeta/enumeratum) [![Coverage Status](https://coveralls.io/repos/lloydmeta/enumeratum/badge.svg?branch=master)](https://coveralls.io/r/lloydmeta/enumeratum?branch=master) [![Codacy Badge](https://www.codacy.com/project/badge/a71a20d8678f4ed3a5b74b0659c1bc4c)](https://www.codacy.com/public/lloydmeta/enumeratum)
1+
# Enumeratum [![Build Status](https://travis-ci.org/lloydmeta/enumeratum.svg?branch=master)](https://travis-ci.org/lloydmeta/enumeratum) [![Coverage Status](https://coveralls.io/repos/lloydmeta/enumeratum/badge.svg?branch=master)](https://coveralls.io/r/lloydmeta/enumeratum?branch=master) [![Codacy Badge](https://www.codacy.com/project/badge/a71a20d8678f4ed3a5b74b0659c1bc4c)](https://www.codacy.com/public/lloydmeta/enumeratum)
22

33
Yet another enumeration implementation for Scala for the sake of exhaustive pattern match warnings, Enumeratum is
44
an implementation based on a single Scala macro that searches for implementations of a sealed trait or class.
55

66
Enumeratum aims to be similar enough to Scala's built in `Enumeration` to be easy-to-use and understand while offering
7-
more flexibility, safety, and power.
7+
more flexibility, safety, and power.
88

9-
Using Enumeratum allows you to use your own `sealed` traits/classes without having to maintain your own collection of
10-
values, which not only means you get exhaustive pattern match warnings, but also richer enum values, and methods that
11-
can take your enum values as arguments without having to worry about erasure (for more info, see [this blog post on Scala's
9+
Using Enumeratum allows you to use your own `sealed` traits/classes without having to maintain your own collection of
10+
values, which not only means you get exhaustive pattern match warnings, but also richer enum values, and methods that
11+
can take your enum values as arguments without having to worry about erasure (for more info, see [this blog post on Scala's
1212
`Enumeration`](http://underscore.io/blog/posts/2014/09/03/enumerations.html))
1313

1414
Compatible with Scala 2.10.x and 2.11.x
@@ -45,7 +45,7 @@ libraryDependencies ++= Seq(
4545
Using Enumeratum is simple. Simply declare your own sealed trait or class `A`, and implement it as case objects inside
4646
an object that extends from `Enum[A]` as follows.
4747

48-
*Note* `Enum` is BYOO (Bring Your Own Ordinality) - take care of ordinality in your own way when you implement
48+
*Note* `Enum` is BYOO (Bring Your Own Ordinality) - take care of ordinality in your own way when you implement
4949
the `values` method. If you don't care about ordinality, just pass `findValues` directly into your
5050
`val values` implementation.
5151

@@ -84,11 +84,11 @@ def tryMatching(v: Greeting): Unit = v match {
8484

8585
/**
8686
Pattern match warning ...
87-
87+
8888
<console>:24: warning: match may not be exhaustive.
8989
It would fail on the following input: Bye
9090
def tryMatching(v: Greeting): Unit = v match {
91-
91+
9292
*/
9393

9494
```
@@ -176,4 +176,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
176176
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
177177
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
178178
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
179-
THE SOFTWARE.
179+
THE SOFTWARE.

0 commit comments

Comments
 (0)