From e80a2d089ceb7e154f21800e94b99a8aa9994bf6 Mon Sep 17 00:00:00 2001 From: yingshanghuangqiao Date: Fri, 20 Jun 2025 10:56:24 +0800 Subject: [PATCH] chore: make function comment match function name Signed-off-by: yingshanghuangqiao --- internal/dhcpsvc/v4.go | 2 +- internal/filtering/filtering.go | 2 +- internal/querylog/decode.go | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/dhcpsvc/v4.go b/internal/dhcpsvc/v4.go index f43e112af1d..f238c412c3f 100644 --- a/internal/dhcpsvc/v4.go +++ b/internal/dhcpsvc/v4.go @@ -428,7 +428,7 @@ func (iface *dhcpInterfaceV4) handleSelecting( // TODO(e.burkov): Implement. } -// handleSelecting handles messages of type request in INIT-REBOOT state. +// handleInitReboot handles messages of type request in INIT-REBOOT state. func (iface *dhcpInterfaceV4) handleInitReboot( ctx context.Context, rw responseWriter4, diff --git a/internal/filtering/filtering.go b/internal/filtering/filtering.go index df65308f690..a9a649bba87 100644 --- a/internal/filtering/filtering.go +++ b/internal/filtering/filtering.go @@ -826,7 +826,7 @@ func (d *DNSFilter) initFiltering(allowFilters, blockFilters []Filter) (err erro return nil } -// hostRules is a helper that converts a slice of host rules into a slice of the +// hostRulesToRules is a helper that converts a slice of host rules into a slice of the // rules.Rule interface values. func hostRulesToRules(netRules []*rules.HostRule) (res []rules.Rule) { if netRules == nil { diff --git a/internal/querylog/decode.go b/internal/querylog/decode.go index 47d87efc027..5ba494941db 100644 --- a/internal/querylog/decode.go +++ b/internal/querylog/decode.go @@ -684,7 +684,7 @@ var resultHandlers = map[string]logEntryHandler{ }, } -// resultDecHandlers calls a decode handler for key if there is one. +// resultDecHandler calls a decode handler for key if there is one. func (l *queryLog) resultDecHandler( ctx context.Context, name string,