mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-26 06:16:56 +09:00
docs: fix typos in code comments (#39968)
- `models/asymkey/error.go`: `IsErrGPGKeyIDAlreadyUsed` doc named the wrong type (`ErrKeyNameAlreadyUsed` → `ErrGPGKeyIDAlreadyUsed`) - `modules/lfs/http_client.go`: `batchs` → `batches` - `routers/web/repo/milestone.go`: `edting` → `editing` (x2), `for change` → `for changing` Signed-off-by: Léon Avic Simmons <Avicennasis@gmail.com>
This commit is contained in:
1 parent
a2da5cd7b5
commit
efd69ab1ff
3 files changed
+5
-5
No files matched your search
@@ -178,7 +178,7 @@ type ErrGPGKeyIDAlreadyUsed struct {
|
||||
KeyID string
|
||||
}
|
||||
|
||||
// IsErrGPGKeyIDAlreadyUsed checks if an error is a ErrKeyNameAlreadyUsed.
|
||||
// IsErrGPGKeyIDAlreadyUsed checks if an error is a ErrGPGKeyIDAlreadyUsed.
|
||||
func IsErrGPGKeyIDAlreadyUsed(err error) bool {
|
||||
_, ok := err.(ErrGPGKeyIDAlreadyUsed)
|
||||
return ok
|
||||
|
||||
@@ -29,7 +29,7 @@ type HTTPClient struct {
|
||||
transfers map[string]TransferAdapter
|
||||
}
|
||||
|
||||
// BatchSize returns the preferred size of batchs to process
|
||||
// BatchSize returns the preferred size of batches to process
|
||||
func (c *HTTPClient) BatchSize() int {
|
||||
return setting.LFSClient.BatchSize
|
||||
}
|
||||
|
||||
@@ -135,7 +135,7 @@ func NewMilestonePost(ctx *context.Context) {
|
||||
ctx.Redirect(ctx.Repo.RepoLink + "/milestones")
|
||||
}
|
||||
|
||||
// EditMilestone render edting milestone page
|
||||
// EditMilestone render editing milestone page
|
||||
func EditMilestone(ctx *context.Context) {
|
||||
ctx.Data["Title"] = ctx.Tr("repo.milestones.edit")
|
||||
ctx.Data["PageIsMilestones"] = true
|
||||
@@ -158,7 +158,7 @@ func EditMilestone(ctx *context.Context) {
|
||||
ctx.HTML(http.StatusOK, tplMilestoneNew)
|
||||
}
|
||||
|
||||
// EditMilestonePost response for edting milestone
|
||||
// EditMilestonePost response for editing milestone
|
||||
func EditMilestonePost(ctx *context.Context) {
|
||||
form := web.GetForm[*forms.CreateMilestoneForm](ctx)
|
||||
ctx.Data["Title"] = ctx.Tr("repo.milestones.edit")
|
||||
@@ -198,7 +198,7 @@ func EditMilestonePost(ctx *context.Context) {
|
||||
ctx.Redirect(ctx.Repo.RepoLink + "/milestones")
|
||||
}
|
||||
|
||||
// ChangeMilestoneStatus response for change a milestone's status
|
||||
// ChangeMilestoneStatus response for changing a milestone's status
|
||||
func ChangeMilestoneStatus(ctx *context.Context) {
|
||||
var toClose bool
|
||||
switch ctx.PathParam("action") {
|
||||
|
||||
Reference in new issue
Block a user