aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/matoous
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/github.com/matoous')
-rw-r--r--vendor/github.com/matoous/godox/godox.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/vendor/github.com/matoous/godox/godox.go b/vendor/github.com/matoous/godox/godox.go
index 13f3f3bec..6d7104b09 100644
--- a/vendor/github.com/matoous/godox/godox.go
+++ b/vendor/github.com/matoous/godox/godox.go
@@ -49,7 +49,7 @@ func getMessages(c *ast.Comment, fset *token.FileSet, keywords []string) []Messa
pos := fset.Position(c.Pos())
// trim the comment
if len(sComment) > 40 {
- sComment = []byte(fmt.Sprintf("%s...", sComment[:40]))
+ sComment = []byte(fmt.Sprintf("%.40s...", sComment))
}
comments = append(comments, Message{
Pos: pos,