From 7dd3d0e1a73fba518e280136b6973a1bc6cfbf30 Mon Sep 17 00:00:00 2001 From: Kare Morstol Date: Fri, 29 Aug 2014 01:50:34 +0200 Subject: [PATCH] Removed a lot of double spaces. I'm dictating, so they sneak in there occasionally. --- SwiftShell/File.swift | 2 +- SwiftShell/Pipes.swift | 6 +++--- SwiftShell/Stream.swift | 4 ++-- SwiftShell/String.swift | 6 +++--- SwiftShellTests/Scripts/Scripts_Tests.swift | 10 +++++----- 5 files changed, 14 insertions(+), 14 deletions(-) diff --git a/SwiftShell/File.swift b/SwiftShell/File.swift index a441cc1..a1678be 100644 --- a/SwiftShell/File.swift +++ b/SwiftShell/File.swift @@ -31,7 +31,7 @@ extension File: ReadableStreamType { return split(delimiter: "\n")(stream: self) } - public func writeTo(inout target: Target) { + public func writeTo(inout target: Target) { target.write(self.read()) } diff --git a/SwiftShell/Pipes.swift b/SwiftShell/Pipes.swift index dbe84b9..6e63957 100644 --- a/SwiftShell/Pipes.swift +++ b/SwiftShell/Pipes.swift @@ -15,11 +15,11 @@ public func |> (lhs: T, rhs: T -> U) -> U { /* crashes the compiler (beta 6) /** - Sequence |> (sorted, {<}) + Sequence |> (sorted, {<}) - leads to +leads to - sorted( Sequence, {<}) + sorted( Sequence, {<}) */ public func |> (lhs: T, rhs:((T,V) -> U, V)) -> U { return rhs.0(lhs, rhs.1 ) diff --git a/SwiftShell/Stream.swift b/SwiftShell/Stream.swift index 1e4e90d..6f7d376 100644 --- a/SwiftShell/Stream.swift +++ b/SwiftShell/Stream.swift @@ -51,7 +51,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 everytime the stream is asked for more text. stream { // initialisation... @@ -61,7 +61,7 @@ stream { } } -:returns: The output stream. +:returns: The output stream. */ public func stream ( closure:() -> () -> String? ) -> ReadableStreamType { let getmoretext = closure() diff --git a/SwiftShell/String.swift b/SwiftShell/String.swift index 4a7936f..7047153 100644 --- a/SwiftShell/String.swift +++ b/SwiftShell/String.swift @@ -23,9 +23,9 @@ extension String { } /** - Splits the string at the first occurrence of separator, and returns a 3-tuple containing the part - before the separator, the separator itself, and the part after the separator. If the separator is - not found, returns a 3-tuple containing the string itself, followed by two empty strings. + Splits the string at the first occurrence of separator, and returns a 3-tuple containing the part + before the separator, the separator itself, and the part after the separator. If the separator is + not found, returns a 3-tuple containing the string itself, followed by two empty strings. */ public func partition(separator: String) -> (String, String, String) { if let separatorRange = self.rangeOfString(separator) { diff --git a/SwiftShellTests/Scripts/Scripts_Tests.swift b/SwiftShellTests/Scripts/Scripts_Tests.swift index 63b37a8..d8faff1 100644 --- a/SwiftShellTests/Scripts/Scripts_Tests.swift +++ b/SwiftShellTests/Scripts/Scripts_Tests.swift @@ -1,12 +1,12 @@ // -// Scripts_Tests.swift -// SwiftShell +// Scripts_Tests.swift +// SwiftShell // -// Created by Kåre Morstøl on 24/08/14. -// Copyright (c) 2014 NotTooBad Software. All rights reserved. +// Created by Kåre Morstøl on 24/08/14. +// Copyright (c) 2014 NotTooBad Software. All rights reserved. // -import SwiftShell +import SwiftShell import XCTest class Scripts_Tests: XCTestCase {