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

remove split string extension from being public

since this extension is only used internally, there is no need to make
this public. this avoids having this extension clash with other user
defined split functions when using this library
Edward Huynh преди 8 години
родител
ревизия
5eaab4f138
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      Sources/HttpRouter.swift

+ 1 - 1
Sources/HttpRouter.swift

@@ -134,7 +134,7 @@ open class HttpRouter {
 
 extension String {
     
-    public func split(_ separator: Character) -> [String] {
+    func split(_ separator: Character) -> [String] {
         return self.split { $0 == separator }.map(String.init)
     }