Skip to content

Commit 90f5b70

Browse files
committed
Correct relative column and remove unwanted comment
1 parent f6fa4f6 commit 90f5b70

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/DocumentationLanguageService/DocumentationLanguageService.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ package actor DocumentationLanguageService: LanguageService, Sendable {
195195
return
196196
}
197197

198-
// Symbol links are delimited by two backticks (``Foo/bar``),
198+
// Symbol links are delimited by two backticks (``Foo/bar``),
199199
// so the destination starts two columns past the start of the link.
200200
let destinationStartColumn = range.lowerBound.column + 2
201201
let relativeColumn = target.column - destinationStartColumn
@@ -270,7 +270,7 @@ package actor DocumentationLanguageService: LanguageService, Sendable {
270270
return line.utf8.distance(from: line.startIndex, to: stringIndex)
271271
}
272272

273-
/// The inverse of `utf8Offset(inLine:forUTF16Offset:)`.
273+
/// The inverse of `utf8Offset(inLine:forUTF16Offset:)`
274274
private func utf16Offset(inLine line: String, forUTF8Offset utf8Offset: Int) -> Int {
275275
let utf8View = line.utf8
276276
guard

0 commit comments

Comments
 (0)