Skip to content

Commit 2d9b900

Browse files
committed
Merge pull request #2 from apple/master
update2
2 parents 8690fa7 + 40e412a commit 2d9b900

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

docs/OptimizationTips.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,7 @@ If it makes sense to limit the adoption of protocols to classes then mark
557557
protocols as class-only protocols to get better runtime performance.
558558

559559
::
560+
560561
protocol Pingable : class { func ping() -> Int }
561562

562563
.. https://developer.apple.com/library/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Protocols.html

lib/Driver/Driver.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Driver::Driver(StringRef DriverExecutable,
6666
DefaultTargetTriple(llvm::sys::getDefaultTargetTriple()) {
6767

6868
// The driver kind must be parsed prior to parsing arguments, since that
69-
// affects how argumens are parsed.
69+
// affects how arguments are parsed.
7070
parseDriverKind(Args.slice(1));
7171
}
7272

@@ -852,7 +852,7 @@ static bool isSDKTooOld(StringRef sdkPath, const llvm::Triple &target) {
852852
void Driver::buildOutputInfo(const ToolChain &TC, const DerivedArgList &Args,
853853
const InputList &Inputs, OutputInfo &OI) const {
854854
// By default, the driver does not link its output; this will be updated
855-
// appropariately below if linking is required.
855+
// appropriately below if linking is required.
856856

857857
if (driverKind == DriverKind::Interactive) {
858858
OI.CompilerMode = OutputInfo::Mode::Immediate;

0 commit comments

Comments
 (0)