Skip to content

Commit 070e80f

Browse files
authored
Fixed typo error
1 parent d119f53 commit 070e80f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Once you have extended the class a set of usefull methods become avaiblable :
6969
|this.validate(state_rules)|Boolean|This method ensures form validation within the object passed in argument.The object should be a representation of the React component state. The first graph level matches with the React state variables.The second level matches with the existing validation rules.|
7070
|this.isFormValid()|Boolean|This method indicates if the form is valid and if there is no errors.|
7171
|this.isFieldInError(fieldName)|Boolean|This method indicates if a specific field is in error. The field name will matches with your React state|
72-
|this.getErrorMessages(separator)|String|This method retruns the different error messages bound to your React state. The argument is optional, by default the separator is a \n. Under the hood a join method is used.|
72+
|this.getErrorMessages(separator)|String|This method returns the different error messages bound to your React state. The argument is optional, by default the separator is a \n. Under the hood a join method is used.|
7373
|this.getErrorsInField(fieldName)|Array|This method retruns the error messages bound to the specified field. The field name will match with your React state. it returns an empty array if no error was bound to the filed.|
7474

7575
The library also contains a [defaultMessages.js](./defaultMessages.js) file wich includes the errors label for a language locale.

0 commit comments

Comments
 (0)