fixed examples (from @raszi)

This commit is contained in:
Nathan Marz 2016-07-04 08:15:40 -04:00
parent 764362d815
commit 8a848a7734

View file

@ -209,9 +209,9 @@ the structure has no metadata or may not contain metadata.
`NIL->SET` navigates to the empty set `#{}` if the value is nil. Otherwise it stays at the current value. `NIL->SET` navigates to the empty set `#{}` if the value is nil. Otherwise it stays at the current value.
```clojure ```clojure
=> (select-one NIL->LIST nil) => (select-one NIL->SET nil)
#{} #{}
=> (select-one NIL->LIST :foo) => (select-one NIL->SET :foo)
:foo :foo
``` ```
@ -220,9 +220,9 @@ the structure has no metadata or may not contain metadata.
`NIL->VECTOR` navigates to the empty vector `[]` if the value is nil. Otherwise it stays at the current value. `NIL->VECTOR` navigates to the empty vector `[]` if the value is nil. Otherwise it stays at the current value.
```clojure ```clojure
=> (select-one NIL->LIST nil) => (select-one NIL->VECTOR nil)
[] []
=> (select-one NIL->LIST :foo) => (select-one NIL->VECTOR :foo)
:foo :foo
``` ```