소스 검색

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