summaryrefslogtreecommitdiffstats
path: root/routers/web/repo
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 /routers/web/repo
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 'routers/web/repo')
-rw-r--r--routers/web/repo/http.go2
-rw-r--r--routers/web/repo/issue.go2
-rw-r--r--routers/web/repo/view.go2
3 files changed, 3 insertions, 3 deletions
diff --git a/routers/web/repo/http.go b/routers/web/repo/http.go
index 649d6d1eb1..3390f026a0 100644
--- a/routers/web/repo/http.go
+++ b/routers/web/repo/http.go
@@ -32,7 +32,7 @@ import (
repo_service "code.gitea.io/gitea/services/repository"
)
-// httpBase implmentation git smart HTTP protocol
+// httpBase implementation git smart HTTP protocol
func httpBase(ctx *context.Context) (h *serviceHandler) {
if setting.Repository.DisableHTTPGit {
ctx.Resp.WriteHeader(http.StatusForbidden)
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go
index 9ef5c1d1f0..9639ea8201 100644
--- a/routers/web/repo/issue.go
+++ b/routers/web/repo/issue.go
@@ -831,7 +831,7 @@ func NewIssueChooseTemplate(ctx *context.Context) {
ctx.HTML(http.StatusOK, tplIssueChoose)
}
-// ValidateRepoMetas check and returns repository's meta informations
+// ValidateRepoMetas check and returns repository's meta information
func ValidateRepoMetas(ctx *context.Context, form forms.CreateIssueForm, isPull bool) ([]int64, []int64, int64, int64) {
var (
repo = ctx.Repo.Repository
diff --git a/routers/web/repo/view.go b/routers/web/repo/view.go
index 90d06d11c1..cf076bdf1a 100644
--- a/routers/web/repo/view.go
+++ b/routers/web/repo/view.go
@@ -751,7 +751,7 @@ func renderCode(ctx *context.Context) {
ctx.HTML(http.StatusOK, tplRepoHome)
}
-// RenderUserCards render a page show users according the input templaet
+// RenderUserCards render a page show users according the input template
func RenderUserCards(ctx *context.Context, total int, getter func(opts models.ListOptions) ([]*models.User, error), tpl base.TplName) {
page := ctx.QueryInt("page")
if page <= 0 {