Skip to content

Commit

Permalink
clarify documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jub0bs committed May 15, 2024
1 parent 20fb542 commit 9a3a70e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ import (
//
// Middleware are safe for concurrent use by multiple goroutines.
// Therefore, you are free to expose some or all of their methods
// so you can call them without having to restart your server;
// so you can exercise them without having to restart your server;
// however, if you do expose those methods, you should only do so on some
// internal or authorized endpoints, for security reasons.
//
Expand Down Expand Up @@ -544,7 +544,7 @@ func (m *Middleware) SetDebug(b bool) {
m.mu.Unlock()
}

// Config returns a copy of m's current configuration;
// Config returns a pointer to a deep copy of m's current configuration;
// if m is a passthrough middleware, it simply returns nil.
// The result may differ from the [Config] with which m was created or last
// reconfigured, but the following statement is guaranteed to be a no-op
Expand Down

0 comments on commit 9a3a70e

Please sign in to comment.