From 1b223566dd52d84ac8195b464030ec1363d4c5bd Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Mon, 21 Aug 2023 09:21:59 -0700 Subject: [PATCH] util/linuxfw: fix typo in unexported doc comment And flesh it out and use idiomatic doc style ("whether" for bools) and end in a period while there anyway. Updates #cleanup Change-Id: Ieb82f13969656e2340c3510e7b102dc8e6932611 Signed-off-by: Brad Fitzpatrick --- util/linuxfw/nftables_runner.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/util/linuxfw/nftables_runner.go b/util/linuxfw/nftables_runner.go index a4d65857a..0866bf88b 100644 --- a/util/linuxfw/nftables_runner.go +++ b/util/linuxfw/nftables_runner.go @@ -136,7 +136,8 @@ func getChainsFromTable(c *nftables.Conn, table *nftables.Table) ([]*nftables.Ch return ret, nil } -// isTSChain retruns true if the chain name starts with ts +// isTSChain reports whether `name` begins with "ts-" (and is thus a +// Tailscale-managed chain). func isTSChain(name string) bool { return strings.HasPrefix(name, "ts-") }