From 655b6b211ae6df0186abd740f248939f7ddeaec1 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Mon, 31 Mar 2025 16:59:18 +0800 Subject: Add descriptive comments to most Go functions --- utils.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'utils.go') diff --git a/utils.go b/utils.go index bac8232..8ede372 100644 --- a/utils.go +++ b/utils.go @@ -5,6 +5,8 @@ package main import "strings" +// sliceContainsNewlines returns true if and only if the given slice contains +// one or more strings that contains newlines. func sliceContainsNewlines(s []string) bool { for _, v := range s { if strings.Contains(v, "\n") { -- cgit v1.2.3