Skip to content

Commit

Permalink
Fixing docs (#57)
Browse files Browse the repository at this point in the history
* Update trim_left.md

* Update trim_right.md
  • Loading branch information
cinar authored Jun 17, 2023
1 parent e7f71b4 commit 21d89ba
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions doc/normalizers/trim_left.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Trim Left Normalizer

The ```trim``` normalizer removes the whitespaces at the beginning and at the end of the given value. It can be mixed with checkers and other normalizers when defining the validation steps for user data.
The ```trim-left``` normalizer removes the whitespaces at the beginning of the given value. It can be mixed with checkers and other normalizers when defining the validation steps for user data.

```golang
type User struct {
Username string `checkers:"trim"`
Username string `checkers:"trim-left"`
}

user := &User{
Expand Down
4 changes: 2 additions & 2 deletions doc/normalizers/trim_right.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# Trim Right Normalizer

The ```trim``` normalizer removes the whitespaces at the beginning and at the end of the given value. It can be mixed with checkers and other normalizers when defining the validation steps for user data.
The ```trim-right``` normalizer removes the whitespaces at the end of the given value. It can be mixed with checkers and other normalizers when defining the validation steps for user data.

```golang
type User struct {
Username string `checkers:"trim"`
Username string `checkers:"trim-right"`
}

user := &User{
Expand Down

0 comments on commit 21d89ba

Please sign in to comment.