Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: fix some typos in comments (#3243)

coderwander162521885c32
diff --git a/internal/cron/schedule.go b/internal/cron/schedule.go
index 26d74315e..48b1b8990 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 36d46fcdb..05dbea0f4 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 aebfe1a6d..3f2de0fb8 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