From ec8261a46073432abfbf5ca30d0e49640ce6386b Mon Sep 17 00:00:00 2001 From: Minglei Tu Date: Mon, 13 Apr 2015 07:27:02 +0800 Subject: [PATCH] Update README.md --- src/main/scala/com/github/tminglei/bind/Framework.scala | 2 +- src/main/scala/com/github/tminglei/bind/README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/scala/com/github/tminglei/bind/Framework.scala b/src/main/scala/com/github/tminglei/bind/Framework.scala index 4ddf057..b62b79a 100644 --- a/src/main/scala/com/github/tminglei/bind/Framework.scala +++ b/src/main/scala/com/github/tminglei/bind/Framework.scala @@ -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) diff --git a/src/main/scala/com/github/tminglei/bind/README.md b/src/main/scala/com/github/tminglei/bind/README.md index 586c5f3..23c1669 100644 --- a/src/main/scala/com/github/tminglei/bind/README.md +++ b/src/main/scala/com/github/tminglei/bind/README.md @@ -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] ```