File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -11,14 +11,14 @@ This is a Dart implementation of the [KDL Document Language](https://kdl.dev)
11
11
import 'package:kdl/kdl.dart';
12
12
13
13
main() {
14
- var document = Kdl.parseDocument (someString);
14
+ var document = KdlDocument.parse (someString);
15
15
}
16
16
```
17
17
18
18
You can optionally provide your own type annotation handlers:
19
19
20
20
``` dart
21
- KDL.parseDocument (someString, typeParsers: {
21
+ KdlDocument.parse (someString, typeParsers: {
22
22
'foo': (value, type) {
23
23
return Foo(value.value, type: type)
24
24
},
Original file line number Diff line number Diff line change @@ -713,7 +713,7 @@ class KdlTokenizer {
713
713
if (i < 0 || i >= _str.length) {
714
714
return null ;
715
715
}
716
- var char = _str.substring (i, i+ 1 );
716
+ var char = _str.substring (i, i + 1 );
717
717
if (_forbidden.contains (char)) {
718
718
_fail ("Forbidden character: $char " );
719
719
}
You can’t perform that action at this time.
0 commit comments