Skip to content

Commit

Permalink
Merge pull request hashicorp#452 from ahgittin/patch-1
Browse files Browse the repository at this point in the history
Update spec.md
  • Loading branch information
radeksimko authored Aug 16, 2021
2 parents dbdc7b8 + a33cb13 commit 2ebbb5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hclsyntax/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ that were produced against each distinct key.
- `[for v in ["a", "b"]: v]` returns `["a", "b"]`.
- `[for i, v in ["a", "b"]: i]` returns `[0, 1]`.
- `{for i, v in ["a", "b"]: v => i}` returns `{a = 0, b = 1}`.
- `{for i, v in ["a", "a", "b"]: k => v}` produces an error, because attribute
- `{for i, v in ["a", "a", "b"]: v => i}` produces an error, because attribute
`a` is defined twice.
- `{for i, v in ["a", "a", "b"]: v => i...}` returns `{a = [0, 1], b = [2]}`.

Expand Down

0 comments on commit 2ebbb5d

Please sign in to comment.