aboutsummaryrefslogtreecommitdiffstats
path: root/models
diff options
context:
space:
mode:
authorBwko <bouwko@gmail.com>2016-11-27 12:59:12 +0100
committerBwko <bouwko@gmail.com>2016-11-27 12:59:12 +0100
commita4ece1f22391a3602631ada5cb89797e134c4e13 (patch)
tree890425f7efaee401187306da035395effee6bf76 /models
parent5efdccd1d8d8edb801e94aacee311929cae1af8e (diff)
downloadgitea-a4ece1f22391a3602631ada5cb89797e134c4e13.tar.gz
gitea-a4ece1f22391a3602631ada5cb89797e134c4e13.zip
Fixes typos
Diffstat (limited to 'models')
-rw-r--r--models/org.go2
-rw-r--r--models/user.go2
-rw-r--r--models/user_mail.go12
3 files changed, 8 insertions, 8 deletions
diff --git a/models/org.go b/models/org.go
index 1d2ff1300f..3b04ed578c 100644
--- a/models/org.go
+++ b/models/org.go
@@ -500,7 +500,7 @@ func (org *User) getUserTeams(e Engine, userID int64, cols ...string) ([]*Team,
Find(&teams)
}
-// GetUserTeamIDs returns of all team IDs of the organization that user is memeber of.
+// GetUserTeamIDs returns of all team IDs of the organization that user is member of.
func (org *User) GetUserTeamIDs(userID int64) ([]int64, error) {
teams, err := org.getUserTeams(x, userID, "team.id")
if err != nil {
diff --git a/models/user.go b/models/user.go
index 1e15b2a965..34bf685a7d 100644
--- a/models/user.go
+++ b/models/user.go
@@ -80,7 +80,7 @@ type User struct {
// Remember visibility choice for convenience, true for private
LastRepoVisibility bool
- // Maximum repository creation limit, -1 means use gloabl default
+ // Maximum repository creation limit, -1 means use global default
MaxRepoCreation int `xorm:"NOT NULL DEFAULT -1"`
// Permissions
diff --git a/models/user_mail.go b/models/user_mail.go
index 3fc4f4ae89..69f87c2b37 100644
--- a/models/user_mail.go
+++ b/models/user_mail.go
@@ -81,12 +81,12 @@ func addEmailAddress(e Engine, email *EmailAddress) error {
return err
}
-// AddEmailAddress adds an email adress to given user.
+// AddEmailAddress adds an email address to given user.
func AddEmailAddress(email *EmailAddress) error {
return addEmailAddress(x, email)
}
-// AddEmailAddresses adds an email adress to given user.
+// AddEmailAddresses adds an email address to given user.
func AddEmailAddresses(emails []*EmailAddress) error {
if len(emails) == 0 {
return nil
@@ -110,7 +110,7 @@ func AddEmailAddresses(emails []*EmailAddress) error {
return nil
}
-// Activate activates the email adress to given user.
+// Activate activates the email address to given user.
func (email *EmailAddress) Activate() error {
user, err := GetUserByID(email.UID)
if err != nil {
@@ -137,7 +137,7 @@ func (email *EmailAddress) Activate() error {
return sess.Commit()
}
-// DeleteEmailAddress deletes an email adress of given user.
+// DeleteEmailAddress deletes an email address of given user.
func DeleteEmailAddress(email *EmailAddress) (err error) {
if email.ID > 0 {
_, err = x.Id(email.ID).Delete(new(EmailAddress))
@@ -149,7 +149,7 @@ func DeleteEmailAddress(email *EmailAddress) (err error) {
return err
}
-// DeleteEmailAddresses deletes multiple email adresses
+// DeleteEmailAddresses deletes multiple email addresses
func DeleteEmailAddresses(emails []*EmailAddress) (err error) {
for i := range emails {
if err = DeleteEmailAddress(emails[i]); err != nil {
@@ -160,7 +160,7 @@ func DeleteEmailAddresses(emails []*EmailAddress) (err error) {
return nil
}
-// MakeEmailPrimary sets primary email adress of given user.
+// MakeEmailPrimary sets primary email address of given user.
func MakeEmailPrimary(email *EmailAddress) error {
has, err := x.Get(email)
if err != nil {