This repository was archived by the owner on Feb 20, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ The `Parser` type provides a simple parser that can be used to parse arbitrary c
1010var parser = Parser (subject : data)
1111
1212guard let version = parser.pop () else {
13- throw DecodingError.missingVersion
13+ throw DecodingError.missingVersion
1414}
1515guard let string = String (bytes : parser.read (while : { $0 != 0 }), encoding : .utf8 ),
1616 parser.pop (0 ) else {
17- throw DecodingError.invalidStringValue
17+ throw DecodingError.invalidStringValue
1818}
1919```
2020
@@ -24,17 +24,17 @@ Add `swift-collection-parser` as a dependency to your package:
2424
2525``` swift
2626let package = Package (
27- // ...
28- dependencies : [
29- .package (url : " https://github.com/Formkunft/swift-collection-parser" , .upToNextMajor (from : " 2.0.0" )),
30- ],
31- targets : [
32- .target (
33- // ...
34- dependencies : [
35- .product (name : " CollectionParser" , package : " swift-collection-parser" ),
36- ]),
37- ]
27+ // ...
28+ dependencies : [
29+ .package (url : " https://github.com/Formkunft/swift-collection-parser" , .upToNextMajor (from : " 2.0.0" )),
30+ ],
31+ targets : [
32+ .target (
33+ // ...
34+ dependencies : [
35+ .product (name : " CollectionParser" , package : " swift-collection-parser" ),
36+ ]),
37+ ]
3838)
3939```
4040
You can’t perform that action at this time.
0 commit comments