From cc6a2232cdfa842a97143056135f0054f64e3b85 Mon Sep 17 00:00:00 2001 From: Masayuki Morita Date: Thu, 31 Oct 2019 11:58:29 +0900 Subject: [PATCH] Fix typos in hclwrite/parser.go --- hclwrite/parser.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hclwrite/parser.go b/hclwrite/parser.go index d6cf532e..58f418f8 100644 --- a/hclwrite/parser.go +++ b/hclwrite/parser.go @@ -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) {