aboutsummaryrefslogtreecommitdiff
path: root/Sources/WmapParser/ComponentParser.swift
diff options
context:
space:
mode:
authorRuben Beltran del Rio <jj@r.bdr.sh>2025-12-15 11:30:47 +0100
committerRuben Beltran del Rio <jj@r.bdr.sh>2025-12-15 11:51:49 +0100
commitfabd59b7d1540900bd64590646c73c917706ecd8 (patch)
tree6e4e6e56aea797917f0613ed135f4fd1c834a674 /Sources/WmapParser/ComponentParser.swift
parent969b6a6653699b9f8662feb7f42511740f96f84a (diff)
Increase coverage of testsHEADmain
Diffstat (limited to 'Sources/WmapParser/ComponentParser.swift')
-rw-r--r--Sources/WmapParser/ComponentParser.swift3
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 {