Преглед на файлове

Fixed compilation error.

Damian Kołakowski преди 12 години
родител
ревизия
7da65b4ea9
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  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