aboutsummaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorluzpaz <luzpaz@users.noreply.github.com>2021-07-08 07:38:13 -0400
committerGitHub <noreply@github.com>2021-07-08 13:38:13 +0200
commite0296b6a6de6450c474fdf7fe62635a05beb49ab (patch)
tree1e924ac17324f60f6607e65cb51a325b948d1c62 /services
parentbc6f060b8cd89685cc32980c4f03cba58850cab1 (diff)
downloadgitea-e0296b6a6de6450c474fdf7fe62635a05beb49ab.tar.gz
gitea-e0296b6a6de6450c474fdf7fe62635a05beb49ab.zip
Fix various documentation, user-facing, and source comment typos (#16367)
* Fix various doc, user-facing, and source comment typos Found via `codespell -q 3 -S ./options/locale,./vendor -L ba,pullrequest,pullrequests,readby`
Diffstat (limited to 'services')
-rw-r--r--services/auth/sspi_windows.go2
-rw-r--r--services/issue/assignee.go2
-rw-r--r--services/mailer/mailer.go2
-rw-r--r--services/wiki/wiki_test.go2
4 files changed, 4 insertions, 4 deletions
diff --git a/services/auth/sspi_windows.go b/services/auth/sspi_windows.go
index d1289a7617..bb0291d2c9 100644
--- a/services/auth/sspi_windows.go
+++ b/services/auth/sspi_windows.go
@@ -73,7 +73,7 @@ func (s *SSPI) Free() error {
}
// Verify uses SSPI (Windows implementation of SPNEGO) to authenticate the request.
-// If authentication is successful, returs the corresponding user object.
+// If authentication is successful, returns the corresponding user object.
// If negotiation should continue or authentication fails, immediately returns a 401 HTTP
// response code, as required by the SPNEGO protocol.
func (s *SSPI) Verify(req *http.Request, w http.ResponseWriter, store DataStore, sess SessionStore) *models.User {
diff --git a/services/issue/assignee.go b/services/issue/assignee.go
index f24a242f6b..12addede75 100644
--- a/services/issue/assignee.go
+++ b/services/issue/assignee.go
@@ -25,7 +25,7 @@ func DeleteNotPassedAssignee(issue *models.Issue, doer *models.User, assignees [
}
if !found {
- // This function also does comments and hooks, which is why we call it seperatly instead of directly removing the assignees here
+ // This function also does comments and hooks, which is why we call it separately instead of directly removing the assignees here
if _, _, err := ToggleAssignee(issue, doer, assignee.ID); err != nil {
return err
}
diff --git a/services/mailer/mailer.go b/services/mailer/mailer.go
index 6b86734bf8..fae8d473e3 100644
--- a/services/mailer/mailer.go
+++ b/services/mailer/mailer.go
@@ -304,7 +304,7 @@ var Sender gomail.Sender
// NewContext start mail queue service
func NewContext() {
// Need to check if mailQueue is nil because in during reinstall (user had installed
- // before but swithed install lock off), this function will be called again
+ // before but switched install lock off), this function will be called again
// while mail queue is already processing tasks, and produces a race condition.
if setting.MailService == nil || mailQueue != nil {
return
diff --git a/services/wiki/wiki_test.go b/services/wiki/wiki_test.go
index 19f298f2d6..b35b86d655 100644
--- a/services/wiki/wiki_test.go
+++ b/services/wiki/wiki_test.go
@@ -140,7 +140,7 @@ func TestRepository_AddWikiPage(t *testing.T) {
wikiPath := NameToFilename(wikiName)
entry, err := masterTree.GetTreeEntryByPath(wikiPath)
assert.NoError(t, err)
- assert.Equal(t, wikiPath, entry.Name(), "%s not addded correctly", wikiName)
+ assert.Equal(t, wikiPath, entry.Name(), "%s not added correctly", wikiName)
})
}