Skip to content

Commit 210dcf9

Browse files
committed
Fix typo
1 parent 571759a commit 210dcf9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Core/Sources/SuggestionWidget/SuggestionWidgetController.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -396,14 +396,14 @@ func highlighted(code: String, language: String) -> [NSAttributedString] {
396396
}
397397
}
398398

399-
private func convertToCodeLines(_ formatedCode: NSAttributedString) -> [NSAttributedString] {
400-
let input = formatedCode.string
399+
private func convertToCodeLines(_ formattedCode: NSAttributedString) -> [NSAttributedString] {
400+
let input = formattedCode.string
401401
let separatedInput = input.components(separatedBy: "\n")
402402
var output = [NSAttributedString]()
403403
var start = 0
404404
for sub in separatedInput {
405405
let range = NSMakeRange(start, sub.utf16.count)
406-
let attributedString = formatedCode.attributedSubstring(from: range)
406+
let attributedString = formattedCode.attributedSubstring(from: range)
407407
let mutable = NSMutableAttributedString(attributedString: attributedString)
408408
// use regex to replace all spaces to a middle dot
409409
do {

0 commit comments

Comments
 (0)