Fix typos in hclwrite/parser.go

This commit is contained in:
Masayuki Morita 2019-10-31 11:58:29 +09:00
parent 3c7194d967
commit cc6a2232cd
1 changed files with 2 additions and 2 deletions

View File

@ -498,8 +498,8 @@ func writerTokens(nativeTokens hclsyntax.Tokens) Tokens {
// The tokens are assumed to be in source order and non-overlapping, which
// will be true if the token sequence from the scanner is used directly.
func partitionTokens(toks hclsyntax.Tokens, rng hcl.Range) (start, end int) {
// We us a linear search here because we assume tha in most cases our
// target range is close to the beginning of the sequence, and the seqences
// We use a linear search here because we assume that in most cases our
// target range is close to the beginning of the sequence, and the sequences
// are generally small for most reasonable files anyway.
for i := 0; ; i++ {
if i >= len(toks) {