diff options
| author | Vincent Prouillet | 2017-08-25 17:35:15 +0900 | 
|---|---|---|
| committer | GitHub | 2017-08-25 17:35:15 +0900 | 
| commit | 52898be5af95e1d517c379c4df3581bee01a201a (patch) | |
| tree | 204f579f9585bd4c44136b33324204fa610538d3 | |
| parent | 1c0f14aaec42b772fa22861aba8c8b80fcda5b8a (diff) | |
| download | validator-52898be5af95e1d517c379c4df3581bee01a201a.tar.bz2 | |
Update README.md
| -rw-r--r-- | README.md | 5 | 
1 files changed, 4 insertions, 1 deletions
| @@ -45,7 +45,10 @@ fn validate_unique_username(username: &str) -> Result<(), ValidationError> {      Ok(())  } -let errors = signup_data.validate()?; +match signup_data.validate() { +  Ok(_) => (), +  Err(e) => return e; +};  ```  An error has the following structure: | 
