From 04b89857e104ac7dcbf9fc65d8d4f1a1178123e6 Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Wed, 16 Dec 2020 16:56:32 +0545 Subject: all: Fix minor typos --- hugolib/content_map.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'hugolib/content_map.go') diff --git a/hugolib/content_map.go b/hugolib/content_map.go index ca2aa3672..3f5ed65c3 100644 --- a/hugolib/content_map.go +++ b/hugolib/content_map.go @@ -58,8 +58,8 @@ const ( cmLeafSeparator = "__hl_" ) -// Used to mark ambigous keys in reverse index lookups. -var ambigousContentNode = &contentNode{} +// Used to mark ambiguous keys in reverse index lookups. +var ambiguousContentNode = &contentNode{} func newContentMap(cfg contentMapConfig) *contentMap { m := &contentMap{ @@ -86,8 +86,8 @@ func newContentMap(cfg contentMapConfig) *contentMap { addToReverseMap := func(k string, n *contentNode, m map[interface{}]*contentNode) { k = strings.ToLower(k) existing, found := m[k] - if found && existing != ambigousContentNode { - m[k] = ambigousContentNode + if found && existing != ambiguousContentNode { + m[k] = ambiguousContentNode } else if !found { m[k] = n } -- cgit v1.2.3