Skip to content

Rename OutputStream to TextOutputStream [SE-0086] #509

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 21, 2016
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 Sources/Basic/OutputByteStream.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public protocol ByteStreamable {
///
/// would write each item in the list to the stream, separating them with a
/// space.
public class OutputByteStream: OutputStream {
public class OutputByteStream: TextOutputStream {
/// The data buffer.
private var buffer: [UInt8]

Expand Down
4 changes: 2 additions & 2 deletions Sources/Utility/Verbosity.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ public var verbosity = Verbosity.concise
import func libc.fputs
import var libc.stderr

public class StandardErrorOutputStream: OutputStream {
public class StandardErrorOutputStream: TextOutputStream {
public func write(_ string: String) {
// Silently ignore write failures here.
//
// FIXME: We would like to throw this error, but can't given the design of `OutputStream`.
// FIXME: We would like to throw this error, but can't given the design of `TextOutputStream`.
_ = libc.fputs(string, libc.stderr)
}
}
Expand Down