summaryrefslogtreecommitdiff
path: root/cmd/hcldec
diff options
context:
space:
mode:
authorBuck Doyle <buck@hashicorp.com>2019-07-22 14:49:22 -0500
committerPam Selle <pam@hashicorp.com>2019-07-22 15:49:22 -0400
commit6b2febac15daf3ccfe6d635da88a0b3a86cc6721 (patch)
treeff17e8ffcfa163f8e01c41dc293e4d390dcdf154 /cmd/hcldec
parent618463aa79585804de2d5bb43032a43ab008cba3 (diff)
Remove incorrect quotes around types in examples (#119)
When I tried a spec with quoted types, I got this error: `A type is required, not string.` Later in the document, the types don’t have quotes, so I figured that’s what’s expected.
Diffstat (limited to 'cmd/hcldec')
-rw-r--r--cmd/hcldec/spec-format.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd/hcldec/spec-format.md b/cmd/hcldec/spec-format.md
index e26e10f..16c7b7b 100644
--- a/cmd/hcldec/spec-format.md
+++ b/cmd/hcldec/spec-format.md
@@ -41,12 +41,12 @@ spec blocks:
```hcl
object {
attr "name" {
- type = "string"
+ type = string
}
block "address" {
object {
attr "street" {
- type = "string"
+ type = string
}
# ...
}
@@ -73,11 +73,11 @@ any nested spec blocks:
array {
attr {
name = "first_element"
- type = "string"
+ type = string
}
attr {
name = "second_element"
- type = "string"
+ type = string
}
}
```