diff --git a/SwiftShell/FileHandle.swift b/SwiftShell/FileHandle.swift index a48766c..4a115b5 100644 --- a/SwiftShell/FileHandle.swift +++ b/SwiftShell/FileHandle.swift @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: -* Kåre Morstøl, https://github.com/kareman - initial API and implementation. +* Kåre Morstøl, https://github.com/kareman - initial API and implementation. */ import Foundation @@ -77,6 +77,6 @@ public func open(path: String, mode: FileMode = .Read) -> FileHandle { } public let environment = NSProcessInfo.processInfo().environment as [String: String] -public let standardinput = FileHandle.fileHandleWithStandardInput() as ReadableStreamType +public let standardinput = FileHandle.fileHandleWithStandardInput() as ReadableStreamType public let standardoutput = FileHandle.fileHandleWithStandardOutput() as WriteableStreamType public let standarderror = FileHandle.fileHandleWithStandardError() as WriteableStreamType diff --git a/SwiftShell/Pipes.swift b/SwiftShell/Pipes.swift index 747f49c..7e2d6a1 100644 --- a/SwiftShell/Pipes.swift +++ b/SwiftShell/Pipes.swift @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: -* Kåre Morstøl, https://github.com/kareman - initial API and implementation. +* Kåre Morstøl, https://github.com/kareman - initial API and implementation. */ @@ -34,7 +34,7 @@ Should replace the function below as it is more general and will also work with public func |> (lhs: Streamable, inout rhs: OutputStreamType) { - // specifically its these that crash the compiler, not the function definition. + // specifically it's these that crash the compiler, not the function definition. // lhs.writeTo(&rhs) // rhs.write(lhs.) // print(lhs, &rhs) diff --git a/SwiftShell/Stream.swift b/SwiftShell/Stream.swift index 3d95da4..7dcadfa 100644 --- a/SwiftShell/Stream.swift +++ b/SwiftShell/Stream.swift @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: -* Kåre Morstøl, https://github.com/kareman - initial API and implementation. +* Kåre Morstøl, https://github.com/kareman - initial API and implementation. */ import Foundation @@ -54,7 +54,7 @@ public func stream (text: String) -> ReadableStreamType { } /** -Creates a stream from a function returning a generator function, which is called everytime the stream is asked for more text. +Creates a stream from a function returning a generator function, which is called every time the stream is asked for more text. stream { // initialisation... @@ -91,7 +91,7 @@ public func stream (sequ } } -/** For splitting a stream into parts separated by "delimiter". */ +/** Splits a stream into parts separated by "delimiter". */ struct StringStreamGenerator : GeneratorType { private let stream: ReadableStreamType private let delimiter: String @@ -125,7 +125,7 @@ struct StringStreamGenerator : GeneratorType { } } -/** Split a stream lazily */ +/** Splits a stream lazily */ public func split(delimiter: String = "\n")(stream: ReadableStreamType) -> SequenceOf { return SequenceOf({StringStreamGenerator (stream: stream, delimiter: delimiter)}) } diff --git a/SwiftShell/String.swift b/SwiftShell/String.swift index 079c200..622d39b 100644 --- a/SwiftShell/String.swift +++ b/SwiftShell/String.swift @@ -6,7 +6,7 @@ * http://www.eclipse.org/legal/epl-v10.html * * Contributors: -* Kåre Morstøl, https://github.com/kareman - initial API and implementation. +* Kåre Morstøl, https://github.com/kareman - initial API and implementation. */ import Foundation