diff options
Diffstat (limited to 'Sources/WmapParser/ComponentParser.swift')
| -rw-r--r-- | Sources/WmapParser/ComponentParser.swift | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Sources/WmapParser/ComponentParser.swift b/Sources/WmapParser/ComponentParser.swift index 79f5493..d87abc5 100644 --- a/Sources/WmapParser/ComponentParser.swift +++ b/Sources/WmapParser/ComponentParser.swift @@ -1,6 +1,7 @@ extension WmapParser { - /// Parses a component with its coordinates. + /// Parses a component with its coordinates. Assumes a trimmed line was + /// provided. static func parseComponent<T: Collection>(_ bytes: T, _ start: Int, _ end: Int) -> Component? where T.Element == UInt8, T.Index == Int { guard let (label, parenthesisIndex) = extractComponentLabel(bytes, start, end) else { |