Skip to content
This repository was archived by the owner on Mar 12, 2022. It is now read-only.

Commit 5604cd9

Browse files
committed
Try to fix bug
1 parent 88a03a2 commit 5604cd9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

hv/hv.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2013-2014 Unknown
1+
// Copyright 2013 Unknwon
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License"): you may
44
// not use this file except in compliance with the License. You may obtain
@@ -148,7 +148,7 @@ func (r *Render) Render(name string, data []byte) []byte {
148148
}
149149

150150
// FIXME: index out of range
151-
if len(code) <= pos {
151+
if len(code) == pos+1 {
152152
break CutWords
153153
}
154154
if !isString {

0 commit comments

Comments
 (0)