summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Harrison <aharrison@gmail.com>2020-01-28 13:45:39 -0500
committerzeripath <art27@cantab.net>2020-01-28 18:45:39 +0000
commitd879353632c5220c8ac0e3831311ebfe7cf357fe (patch)
tree3ba67958d28029dd512d9b311cfc956dfd667949
parent28216bde46a8cf415755ca41f3d58843eeb45e7c (diff)
downloadgitea-d879353632c5220c8ac0e3831311ebfe7cf357fe.tar.gz
gitea-d879353632c5220c8ac0e3831311ebfe7cf357fe.zip
Minor typo fix (#10043)
-rw-r--r--routers/api/v1/admin/repo.go2
-rw-r--r--templates/swagger/v1_json.tmpl2
2 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/admin/repo.go b/routers/api/v1/admin/repo.go
index c3ca525510..73c7d740f8 100644
--- a/routers/api/v1/admin/repo.go
+++ b/routers/api/v1/admin/repo.go
@@ -15,7 +15,7 @@ import (
func CreateRepo(ctx *context.APIContext, form api.CreateRepoOption) {
// swagger:operation POST /admin/users/{username}/repos admin adminCreateRepo
// ---
- // summary: Create a repository on behalf a user
+ // summary: Create a repository on behalf of a user
// consumes:
// - application/json
// produces:
diff --git a/templates/swagger/v1_json.tmpl b/templates/swagger/v1_json.tmpl
index 11af8e035b..c5fa6d6ad8 100644
--- a/templates/swagger/v1_json.tmpl
+++ b/templates/swagger/v1_json.tmpl
@@ -335,7 +335,7 @@
"tags": [
"admin"
],
- "summary": "Create a repository on behalf a user",
+ "summary": "Create a repository on behalf of a user",
"operationId": "adminCreateRepo",
"parameters": [
{