Skip to content
Permalink
Browse files

doc/usecase: correcting type-checking example

the example on type checking had an spelling error in ther types name resulting
in an `reference "Spec" not found` error. also the comment regarding the error
on a misspelled was not showing.
  • Loading branch information...
xinau committed Sep 9, 2019
1 parent b3555d1 commit 093eed324d06d6bf7e88bd560bf66b8642e26711
Showing with 2 additions and 2 deletions.
  1. +2 −2 content/en/docs/usecases/configuration.md
@@ -39,7 +39,7 @@ In CUE types and values are a unified concept, which gives it very
expressive, yet intuitive and compact, typing capabilities.

```
Specs :: {
Spec :: {
kind: string
name: {
@@ -56,7 +56,7 @@ Specs :: {
// A spec is of type Spec
spec: Spec
spec: {
kind: string // error, misspelled field
knid: "Homo Sapiens" // error, misspelled field
name first: "Jane"
name last: "Doe"

0 comments on commit 093eed3

Please sign in to comment.
You can’t perform that action at this time.