From 8ae9bb72edc1df9d34f15158f5eaaf68c6d93a43 Mon Sep 17 00:00:00 2001 From: ken0nek Date: Fri, 4 Dec 2015 16:40:49 +0900 Subject: [PATCH] Add whitespaces. Corrected typo: text filed -> text file Add missing period fix-typo Add whitespaces Fix Corrected typo: text filed -> text file Add missing period fix-typo --- docs/ARCOptimization.rst | 2 +- lib/SILAnalysis/EscapeAnalysis.cpp | 2 +- stdlib/public/SDK/AppKit/AppKit.swift | 6 +++--- utils/demo-tool | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/ARCOptimization.rst b/docs/ARCOptimization.rst index 5cf08d88d7160..082589310a756 100644 --- a/docs/ARCOptimization.rst +++ b/docs/ARCOptimization.rst @@ -151,7 +151,7 @@ referent. Consider the following sequence of rules: is deallocated. (3) A different source-level variable pointing at the same referent - must not be changed/invalidated by such a call + must not be changed/invalidated by such a call. (4) If such a variable exists, the compiler must guarantee the refcount is > 1 going into the call. diff --git a/lib/SILAnalysis/EscapeAnalysis.cpp b/lib/SILAnalysis/EscapeAnalysis.cpp index 8494d13ae325a..728af81a7e40c 100644 --- a/lib/SILAnalysis/EscapeAnalysis.cpp +++ b/lib/SILAnalysis/EscapeAnalysis.cpp @@ -879,7 +879,7 @@ static bool linkBBArgs(SILBasicBlock *BB) { if (BB == &BB->getParent()->front()) return false; // We don't need to link to the try_apply's normal result argument, because - // we handle it separatly in setAllEscaping() and mergeCalleeGraph(). + // we handle it separately in setAllEscaping() and mergeCalleeGraph(). if (SILBasicBlock *SinglePred = BB->getSinglePredecessor()) { auto *TAI = dyn_cast(SinglePred->getTerminator()); if (TAI && BB == TAI->getNormalBB()) diff --git a/stdlib/public/SDK/AppKit/AppKit.swift b/stdlib/public/SDK/AppKit/AppKit.swift index cb7de9c84f948..80654fe465ae0 100644 --- a/stdlib/public/SDK/AppKit/AppKit.swift +++ b/stdlib/public/SDK/AppKit/AppKit.swift @@ -30,7 +30,7 @@ struct _NSCursorMirror : _MirrorType { _preconditionFailure("_MirrorType access out of bounds") } - var summary: String { return ""} + var summary: String { return "" } var quickLookObject: PlaygroundQuickLook? { return .Some(.Image(_value.image)) @@ -50,7 +50,7 @@ struct _NSViewMirror : _MirrorType { var _v : NSView - init(_ v : NSView) {_v = v} + init(_ v : NSView) { _v = v } var value: Any { get { return _v } } @@ -64,7 +64,7 @@ struct _NSViewMirror : _MirrorType { _preconditionFailure("_MirrorType access out of bounds") } - var summary: String { get { return ""} } + var summary: String { get { return "" } } var quickLookObject: PlaygroundQuickLook? { get { // adapted from the Xcode QuickLooks implementation diff --git a/utils/demo-tool b/utils/demo-tool index 31b553ba7553a..3cd32497370ce 100755 --- a/utils/demo-tool +++ b/utils/demo-tool @@ -93,7 +93,7 @@ a JSON document listing the commands to run, as in:: { "command" : "echo Hello" } ] -or, alternately, it should be a text filed delimited by '>>>', as in:: +or, alternately, it should be a text file delimited by '>>>', as in:: >>> ls