Fix typos and space for indentation.

This commit is contained in:
Kare Morstol
2014-09-02 18:17:20 +02:00
parent 96ab5a2070
commit ac7931d8b5
4 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -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
+2 -2
View File
@@ -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)
+4 -4
View File
@@ -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 <Seq:SequenceType where Seq.Generator.Element == String>(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<String> {
return SequenceOf({StringStreamGenerator (stream: stream, delimiter: delimiter)})
}
+1 -1
View File
@@ -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