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

Commit

Permalink
Try to fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Sep 19, 2014
1 parent 88a03a2 commit 5604cd9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hv/hv.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2013-2014 Unknown
// Copyright 2013 Unknwon
//
// Licensed under the Apache License, Version 2.0 (the "License"): you may
// not use this file except in compliance with the License. You may obtain
Expand Down Expand Up @@ -148,7 +148,7 @@ func (r *Render) Render(name string, data []byte) []byte {
}

// FIXME: index out of range
if len(code) <= pos {
if len(code) == pos+1 {
break CutWords
}
if !isString {
Expand Down

0 comments on commit 5604cd9

Please sign in to comment.