Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Foundation/NSStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ open class OutputStream : Stream {
return Stream.Status(rawValue: UInt(CFWriteStreamGetStatus(_stream)))!
}

open class func outputStreamToMemory() -> Self {
open class func toMemory() -> Self {
return self.init(toMemory: ())
}

Expand Down
2 changes: 1 addition & 1 deletion TestFoundation/TestNSStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ class TestNSStream : XCTestCase {
var buffer = Array<UInt8>(repeating: 0, count: 12)
var myString = "Hello world!"
let encodedData = [UInt8](myString.utf8)
let outputStream = OutputStream.outputStreamToMemory()
let outputStream = OutputStream.toMemory()
XCTAssertEqual(Stream.Status.notOpen, outputStream.streamStatus)
outputStream.open()
XCTAssertEqual(Stream.Status.open, outputStream.streamStatus)
Expand Down