aboutsummaryrefslogtreecommitdiff
path: root/ui/messages/parser/htmltagarray.go
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2018-04-22 20:13:57 +0300
committerTulir Asokan <tulir@maunium.net>2018-04-22 20:14:40 +0300
commit7e946a07035caae6fd1622d588abc7872a3a8158 (patch)
tree4feed08d55cb096a8caaa5800b00e54922f4e279 /ui/messages/parser/htmltagarray.go
parentadee1ffcc414a2efbf36cc1a2ab6061714468588 (diff)
Fix golint warnings
Diffstat (limited to 'ui/messages/parser/htmltagarray.go')
-rw-r--r--ui/messages/parser/htmltagarray.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/messages/parser/htmltagarray.go b/ui/messages/parser/htmltagarray.go
index d66d7d9..464caa9 100644
--- a/ui/messages/parser/htmltagarray.go
+++ b/ui/messages/parser/htmltagarray.go
@@ -35,7 +35,7 @@ func (ta *TagArray) Push(tag string) {
ta.PushMeta(&TagWithMeta{Tag: tag})
}
-// Push adds the given tag to the array.
+// PushMeta adds the given tag to the array.
func (ta *TagArray) PushMeta(tag *TagWithMeta) {
*ta = append(*ta, BlankTag)
copy((*ta)[1:], *ta)
@@ -78,7 +78,7 @@ func (ta *TagArray) Get(tag string) *TagWithMeta {
return ta.GetAfter(tag, -1)
}
-// IndexAfter returns the first occurrence of the given tag, or nil if the given
+// GetAfter returns the first occurrence of the given tag, or nil if the given
// tag is not on the list after the given index.
func (ta *TagArray) GetAfter(tag string, after int) *TagWithMeta {
for i := after + 1; i < len(*ta); i++ {