Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
tminglei committed Apr 12, 2015
1 parent 0c6373f commit ec8261a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/scala/com/github/tminglei/bind/Framework.scala
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ case class FormBinder[R](messages: Messages,
def withErr[R1](errProcessor: ErrProcessor[R1]) = copy(errProcessor = errProcessor)

/**
* bind mappings to data, and return an either, which holds validation errors (left) or produced result (right)
* bind mappings to data, and return an either, holding validation errors (left) or converted value (right)
*/
def bind[T, M <: InputMode](mapping: Mapping[T, M], data: Map[String, String]): Either[R, T] = {
val data1 = processDataRec("", data, mapping.options, processors)
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/com/github/tminglei/bind/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ The core of `form-binder` is `Mapping`, **tree structure** mappings. With **dept
binder **bind** method signature (return an `Either` and let user to continue processing):
```scala
//bind mappings to data, and return an either, which holds validation errors (left) or produced result (right)
//bind mappings to data, and return an either, holding validation errors (left) or converted value (right)
def bind[T, M <: InputMode](mapping: Mapping[T, M], data: Map[String, String]): Either[R, T]
```

Expand Down

0 comments on commit ec8261a

Please sign in to comment.