Explorar o código

Fixed compilation error.

Damian Kołakowski %!s(int64=12) %!d(string=hai) anos
pai
achega
7da65b4ea9
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      Swifter/HttpServer.swift

+ 2 - 2
Swifter/HttpServer.swift

@@ -11,7 +11,7 @@ enum ResponseStatus {
     case OK(String)
     case NotFound
 
-    func numericValue() {
+    func numericValue() -> Int {
         switch self {
             case .OK(_):
                 return 200
@@ -20,7 +20,7 @@ enum ResponseStatus {
         }
     }
 
-    func textValue() {
+    func textValue() -> String {
         switch self {
             case .OK(let text):
                 return text