summaryrefslogtreecommitdiffstats
path: root/models/user.go
diff options
context:
space:
mode:
authorEthan Koenig <etk39@cornell.edu>2017-01-04 19:50:34 -0500
committerLunny Xiao <xiaolunwen@gmail.com>2017-01-05 08:50:34 +0800
commit1207bda94b8de9f0cc618c4ccce235d809a5559e (patch)
tree9650961a7aa1dd3de883f5f6bef27db420b26227 /models/user.go
parentdc3ff9f2abc935f06940de56d613dacde3ee8c13 (diff)
downloadgitea-1207bda94b8de9f0cc618c4ccce235d809a5559e.tar.gz
gitea-1207bda94b8de9f0cc618c4ccce235d809a5559e.zip
Fix typos in models/ (#576)
Diffstat (limited to 'models/user.go')
-rw-r--r--models/user.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/models/user.go b/models/user.go
index 9f19b1c84e..e32a29ae31 100644
--- a/models/user.go
+++ b/models/user.go
@@ -663,7 +663,7 @@ func Users(opts *SearchUserOptions) ([]*User, error) {
Find(&users)
}
-// get user by erify code
+// get user by verify code
func getVerifyUser(code string) (user *User) {
if len(code) <= base.TimeLimitCodeLength {
return nil
@@ -1057,7 +1057,7 @@ type UserCommit struct {
*git.Commit
}
-// ValidateCommitWithEmail chceck if author's e-mail of commit is corresponsind to a user.
+// ValidateCommitWithEmail check 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 {
@@ -1216,7 +1216,7 @@ func FollowUser(userID, followID int64) (err error) {
return sess.Commit()
}
-// UnfollowUser unmarks someone be another's follower.
+// UnfollowUser unmarks someone as another's follower.
func UnfollowUser(userID, followID int64) (err error) {
if userID == followID || !IsFollowing(userID, followID) {
return nil