@@ -147,8 +147,8 @@ func Load(cfgJSON []byte, forceReload bool) error {
147147// the new value (if applicable; i.e. "DELETE" doesn't have an input).
148148// If the resulting config is the same as the previous, no reload will
149149// occur unless forceReload is true. If the config is unchanged and not
150- // forcefully reloaded, then errConfigUnchanged This function is safe for
151- // concurrent use.
150+ // forcefully reloaded, then errConfigUnchanged is returned. This function
151+ // is safe for concurrent use.
152152// The ifMatchHeader can optionally be given a string of the format:
153153//
154154// "<path> <hash>"
@@ -1092,7 +1092,7 @@ type Event struct {
10921092}
10931093
10941094// NewEvent creates a new event, but does not emit the event. To emit an
1095- // event, call Emit() on the current instance of the caddyevents app insteaad .
1095+ // event, call Emit() on the current instance of the caddyevents app instead .
10961096//
10971097// EXPERIMENTAL: Subject to change.
10981098func NewEvent (ctx Context , name string , data map [string ]any ) (Event , error ) {
@@ -1250,10 +1250,10 @@ func getLastConfig() (file, adapter string, fn reloadFromSourceFunc) {
12501250
12511251// lastConfigMatches returns true if the provided source file and/or adapter
12521252// matches the recorded last-config. Matching rules (in priority order):
1253- // 1. If srcAdapter is provided and differs from the recorded adapter, no match.
1254- // 2. If srcFile exactly equals the recorded file, match.
1255- // 3. If both sides can be made absolute and equal, match.
1256- // 4. If basenames are equal, match.
1253+ // 1. If srcAdapter is provided and differs from the recorded adapter, no match.
1254+ // 2. If srcFile exactly equals the recorded file, match.
1255+ // 3. If both sides can be made absolute and equal, match.
1256+ // 4. If basenames are equal, match.
12571257func lastConfigMatches (srcFile , srcAdapter string ) bool {
12581258 lf , la , _ := getLastConfig ()
12591259
0 commit comments