From 162521885c32582133369810e12fde956eadd06f Mon Sep 17 00:00:00 2001 From: coderwander <166724773+coderwander@users.noreply.github.com> Date: Tue, 16 Apr 2024 21:14:38 +0800 Subject: [PATCH] chore: fix some typos in comments (#3243) Signed-off-by: coderwander <770732124@qq.com> --- internal/cron/schedule.go | 2 +- scripts/gen-api-v1-docs.cfg | 2 +- server/route/api/v2/apidocs.swagger.yaml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cron/schedule.go b/internal/cron/schedule.go index 26d74315..48b1b899 100644 --- a/internal/cron/schedule.go +++ b/internal/cron/schedule.go @@ -150,7 +150,7 @@ func parseCronSegment(segment string, min int, max int) (map[int]struct{}, error switch len(rangeParts) { case 1: if step != 1 { - return nil, errors.New("invalid segement step - step > 1 could be used only with the wildcard or range format") + return nil, errors.New("invalid segment step - step > 1 could be used only with the wildcard or range format") } parsed, err := strconv.Atoi(rangeParts[0]) if err != nil { diff --git a/scripts/gen-api-v1-docs.cfg b/scripts/gen-api-v1-docs.cfg index 36d46fcd..05dbea0f 100644 --- a/scripts/gen-api-v1-docs.cfg +++ b/scripts/gen-api-v1-docs.cfg @@ -1,6 +1,6 @@ # This file is used by gen-api-v1-docs.ps1 and gen-api-v1-docs.sh -# You should list aditional dirs here if the API grows +# You should list additional dirs here if the API grows SWAG_API_DIRS=./server/route/api/v1 # Where general API info is documented diff --git a/server/route/api/v2/apidocs.swagger.yaml b/server/route/api/v2/apidocs.swagger.yaml index aebfe1a6..3f2de0fb 100644 --- a/server/route/api/v2/apidocs.swagger.yaml +++ b/server/route/api/v2/apidocs.swagger.yaml @@ -2909,7 +2909,7 @@ definitions: owner: type: string title: |- - The name of intance owner. + The name of instance owner. Format: "users/{id}" version: type: string