Skip to content

Commit cf43ffe

Browse files
committed
correct comment
1 parent 66b8400 commit cf43ffe

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/SourceKitLSP/Swift/SwiftLanguageService.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1229,10 +1229,6 @@ extension DocumentSnapshot {
12291229
}
12301230

12311231
/// Converts the given `String.Index` to a UTF-16-based line:column position.
1232-
///
1233-
/// If the index does not refer to a valid position within the snapshot, returns the closest valid
1234-
/// position and logs a fault containing the file and line of the caller (from `callerFile` and
1235-
/// `callerLine`).
12361232
func position(of index: String.Index, fromLine: Int = 0) -> Position {
12371233
let (line, utf16Column) = lineTable.lineAndUTF16ColumnOf(index, fromLine: fromLine)
12381234
return Position(line: line, utf16index: utf16Column)

0 commit comments

Comments
 (0)