Skip to content

Commit

Permalink
Merge pull request hashicorp#317 from minamijoyo/fix-typos-in-hclwrit…
Browse files Browse the repository at this point in the history
…e-parser

Fix typos in hclwrite/parser.go
  • Loading branch information
radeksimko committed May 27, 2020
2 parents 92aa0d1 + cc6a223 commit a20a69c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hclwrite/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,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) {
Expand Down

0 comments on commit a20a69c

Please sign in to comment.