summaryrefslogtreecommitdiff
path: root/borrowed_misc.go
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:15:13 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-01-29 02:15:13 -0700
commit0b57145421e7e4f165f64e73ee7c5d8102945569 (patch)
tree25584309e42bb53469959a3725393bdbc8b225c7 /borrowed_misc.go
parentffee5c8516f3f55f82ed5bb8f0a4f340d485fa92 (diff)
parent7e00adcf43b18a22ffbbadc79b8681a5d871f448 (diff)
Merge branch 'lukeshu/quality'
This branch works to improve code quality, without making any substantive changes.
Diffstat (limited to 'borrowed_misc.go')
-rw-r--r--borrowed_misc.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/borrowed_misc.go b/borrowed_misc.go
index ab9338f..b84158b 100644
--- a/borrowed_misc.go
+++ b/borrowed_misc.go
@@ -12,7 +12,7 @@ import (
"unicode"
)
-// from encode.go
+// isEmptyValue is borrowed from encode.go.
func isEmptyValue(v reflect.Value) bool {
switch v.Kind() {
case reflect.Array, reflect.Map, reflect.Slice, reflect.String:
@@ -31,7 +31,7 @@ func isEmptyValue(v reflect.Value) bool {
return false
}
-// from encode.go
+// isValidTag is borrowed from encode.go.
func isValidTag(s string) bool {
if s == "" {
return false