chore: fix function names in comment (#7723)

Signed-off-by: wanshuangcheng <wanshuangcheng@outlook.com>
This commit is contained in:
wanshuangcheng 2024-04-08 16:15:44 +08:00 committed by GitHub
parent b0e515243d
commit a096b7e5d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -76,7 +76,7 @@ func (l *Login) renderDeviceAuthDone(w http.ResponseWriter, r *http.Request, aut
}
}
// handleDeviceUserCode serves the Device Authorization user code submission form.
// handleDeviceAuthUserCode serves the Device Authorization user code submission form.
// The "user_code" may be submitted by URL (GET) or form (POST).
// When a "user_code" is received and found through query,
// handleDeviceAuthUserCode will create a new AuthRequest in the repository.

View File

@ -37,7 +37,7 @@ func (s *SetRestrictions) Validate(defaultLanguage language.Tag) error {
return nil
}
// SetRestrictions creates new restrictions or updates existing restrictions.
// SetInstanceRestrictions creates new restrictions or updates existing restrictions.
func (c *Commands) SetInstanceRestrictions(
ctx context.Context,
setRestrictions *SetRestrictions,

View File

@ -421,7 +421,7 @@ func (h *Handler) Trigger(ctx context.Context, opts ...TriggerOpt) (_ context.Co
}
}
// lockInstances tries to lock the instance.
// lockInstance tries to lock the instance.
// If the instance is already locked from another process no cancel function is returned
// the instance can be skipped then
// If the instance is locked, an unlock deferrable function is returned