File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ open class OutputStream : Stream {
212212 return Stream . Status ( rawValue: UInt ( CFWriteStreamGetStatus ( _stream) ) ) !
213213 }
214214
215- open class func outputStreamToMemory ( ) -> Self {
215+ open class func toMemory ( ) -> Self {
216216 return self . init ( toMemory: ( ) )
217217 }
218218
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ class TestNSStream : XCTestCase {
181181 var buffer = Array < UInt8 > ( repeating: 0 , count: 12 )
182182 var myString = " Hello world! "
183183 let encodedData = [ UInt8] ( myString. utf8)
184- let outputStream = OutputStream . outputStreamToMemory ( )
184+ let outputStream = OutputStream . toMemory ( )
185185 XCTAssertEqual ( Stream . Status. notOpen, outputStream. streamStatus)
186186 outputStream. open ( )
187187 XCTAssertEqual ( Stream . Status. open, outputStream. streamStatus)
You can’t perform that action at this time.
0 commit comments