Skip to content

Commit

Permalink
dnsforward: fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Mar 13, 2024
1 parent c6cce96 commit c6162a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/dnsforward/dnsforward.go
Original file line number Diff line number Diff line change
Expand Up @@ -528,15 +528,15 @@ type LocalResolversError struct {
// type check
var _ error = (*LocalResolversError)(nil)

// Error implements the error interface for *localResolversError.
// Error implements the error interface for *LocalResolversError.
func (err *LocalResolversError) Error() (s string) {
return fmt.Sprintf("creating local resolvers: %s", err.Err)
}

// type check
var _ errors.Wrapper = (*LocalResolversError)(nil)

// Unwrap implements the [errors.Wrapper] interface for *localResolversError.
// Unwrap implements the [errors.Wrapper] interface for *LocalResolversError.
func (err *LocalResolversError) Unwrap() error {
return err.Err
}
Expand Down

0 comments on commit c6162a2

Please sign in to comment.