From 66776bff1bd69b2d06bc9f2b30fc312898b1a30f Mon Sep 17 00:00:00 2001 From: Jah-yee <166608075+Jah-yee@users.noreply.github.com> Date: Mon, 3 Aug 2026 04:54:37 +0800 Subject: [PATCH] fix: correct occoured to occurred typo in server/helperJSON.go --- server/helperJSON.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/helperJSON.go b/server/helperJSON.go index 7089ec6..6870a63 100644 --- a/server/helperJSON.go +++ b/server/helperJSON.go @@ -23,7 +23,7 @@ func rejectWithErrorJSON(w http.ResponseWriter, code string, message string) { // rejectWithDefaultErrorJSON writes a default error encoded as JSON to a // http.ResponseWriter. rejectWithDefaultErrorJSON(w) is equivalent to -// rejectWithErrorJSON(w, "unknown", "An unknown error occoured.")) +// rejectWithErrorJSON(w, "unknown", "An unknown error occurred.")) // w the http.ResponseWriter func rejectWithDefaultErrorJSON(w http.ResponseWriter) { type Err struct { @@ -31,7 +31,7 @@ func rejectWithDefaultErrorJSON(w http.ResponseWriter) { Message string `json:"message"` } - e := Err{Code: "unknown", Message: "An unknown error occoured."} + e := Err{Code: "unknown", Message: "An unknown error occurred."} jsonErr, _ := json.Marshal(e) http.Error(w, string(jsonErr), 422) }