diff options
author | Atin <61903527+atin@users.noreply.github.com> | 2021-05-19 10:42:09 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-19 13:12:09 +0800 |
commit | d6987ee05be8b5da279e530cfd65512cb903c72b (patch) | |
tree | 92da4f00413abb945477a2c4e9df509a9c5b161d /internal/db/user.go | |
parent | 509a392272a2ba2bde9d64bf5a55a58d0eadccc4 (diff) |
chore: fix typos in code comments (#6556)
Diffstat (limited to 'internal/db/user.go')
-rw-r--r-- | internal/db/user.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/db/user.go b/internal/db/user.go index 0e3c106e..3ebaabff 100644 --- a/internal/db/user.go +++ b/internal/db/user.go @@ -283,7 +283,7 @@ func (u *User) AvatarLink() string { return link } -// User.GetFollwoers returns range of user's followers. +// User.GetFollowers returns range of user's followers. func (u *User) GetFollowers(page int) ([]*User, error) { users := make([]*User, 0, ItemsPerPage) sess := x.Limit(ItemsPerPage, (page-1)*ItemsPerPage).Where("follow.follow_id=?", u.ID) @@ -468,7 +468,7 @@ func (u *User) ShortName(length int) string { return tool.EllipsisString(u.Name, length) } -// IsMailable checks if a user is elegible +// IsMailable checks if a user is eligible // to receive emails. func (u *User) IsMailable() bool { return u.IsActive @@ -1002,7 +1002,7 @@ type UserCommit struct { *git.Commit } -// ValidateCommitWithEmail chceck if author's e-mail of commit is corresponsind to a user. +// ValidateCommitWithEmail checks if author's e-mail of commit is corresponding to a user. func ValidateCommitWithEmail(c *git.Commit) *User { u, err := GetUserByEmail(c.Author.Email) if err != nil { |