Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 0add107

Browse files
committed
api: Fix spelling
1 parent 2cfe40d commit 0add107

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func jsonErr(w http.ResponseWriter, msg string, statusCode int) {
209209
errMsg := fmt.Sprintf("A 2nd error occurred when JSON marshalling an error structure: %v\n", err)
210210
log.Print(errMsg)
211211
http.Error(w, errMsg, http.StatusInternalServerError)
212-
fmt.Fprintf(w, `{"error":"An error occured when marshalling JSON inside jsonErr()"}`)
212+
fmt.Fprintf(w, `{"error":"An error occurred when marshalling JSON inside jsonErr()"}`)
213213
return
214214
}
215215
w.WriteHeader(statusCode)

0 commit comments

Comments
 (0)