Skip to content

Commit

Permalink
fix to 72 character width
Browse files Browse the repository at this point in the history
  • Loading branch information
navanchauhan committed Dec 19, 2023
1 parent 18effc4 commit 298c307
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/swift-gopher/helpers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import Foundation
let versionString = "generated and served by swift-gopher/1.0.0" // TODO: Handle automatic versioning

func buildVersionStringResponse() -> String {
let repeatedString = "i" + String(repeating: "-", count: 80) + "\t\terror.host\t1\r\n"
let repeatedString = "i" + String(repeating: "-", count: 72) + "\t\terror.host\t1\r\n"
let versionResponseString =
"i" + String(repeating: " ", count: 80 - versionString.count) + versionString
"i" + String(repeating: " ", count: 72 - versionString.count) + versionString
+ "\t\terror.host\t1\r\n"
return "\(repeatedString)\(versionResponseString)"
}
Expand Down

0 comments on commit 298c307

Please sign in to comment.