From 79492b67f8bee23f2b937823ccad9a24b2e65e05 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rk=20S=C3=A1gi-Kaz=C3=A1r?= Date: Tue, 12 Sep 2023 01:17:06 +0200 Subject: [PATCH] fix: typo --- viper_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/viper_test.go b/viper_test.go index 34faf53..4a232aa 100644 --- a/viper_test.go +++ b/viper_test.go @@ -2693,12 +2693,13 @@ func TestIsPathShadowedInFlatMap(t *testing.T) { path1 := []string{"foo", "bar"} expected1 := "foo" - // "foo.bar" should shadowed by"foo" + // "foo.bar" should shadowed by "foo" assert.Equal(t, expected1, v.isPathShadowedInFlatMap(path1, stringMap)) assert.Equal(t, expected1, v.isPathShadowedInFlatMap(path1, flagMap)) path2 := []string{"bar", "foo"} expected2 := "" + // "bar.foo" should not shadowed by "foo" assert.Equal(t, expected2, v.isPathShadowedInFlatMap(path2, stringMap)) assert.Equal(t, expected2, v.isPathShadowedInFlatMap(path2, flagMap))