aboutsummaryrefslogtreecommitdiff
path: root/documentation/book/the_lux_programming_language/appendix_g.md
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/book/the_lux_programming_language/appendix_g.md')
-rw-r--r--documentation/book/the_lux_programming_language/appendix_g.md14
1 files changed, 7 insertions, 7 deletions
diff --git a/documentation/book/the_lux_programming_language/appendix_g.md b/documentation/book/the_lux_programming_language/appendix_g.md
index 3f8113057..e18349a69 100644
--- a/documentation/book/the_lux_programming_language/appendix_g.md
+++ b/documentation/book/the_lux_programming_language/appendix_g.md
@@ -11,15 +11,15 @@ Of course, the parser may fail, in which case the user should receive some meani
The `library/lux/control/parser/text` library provides a type, and a host of combinators, for building and working with text parsers.
```clojure
-(type: .public Offset
+(type .public Offset
Nat)
-(type: .public Parser
+(type .public Parser
(//.Parser [Offset Text]))
... And from library/lux/control/parser
-(type: .public (Parser s a)
+(type .public (Parser s a)
(-> s (Try [s a])))
```
@@ -129,11 +129,11 @@ For example:
(regex "a(.)c")
... That means, these are the types of these regular-expressions:
-(: (Parser Text)
- (regex "a{1,}"))
+(is (Parser Text)
+ (regex "a{1,}"))
-(: (Parser [Text Text])
- (regex "a(.)c"))
+(is (Parser [Text Text])
+ (regex "a(.)c"))
```
---