Skip to content

[gardening] Fix recently introduced typos #1611

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 10, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/Parse/ParseDecl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1738,9 +1738,9 @@ bool Parser::isStartOfDecl() {
if (!isKeywordPossibleDeclStart(Tok)) return false;

// When 'init' appears inside another 'init', it's likely the user wants to
// invoke a initializer but forgets to prefix it with 'self.' or 'super.'
// invoke an initializer but forgets to prefix it with 'self.' or 'super.'
// Otherwise, expect 'init' to be the start of a declaration (and complain
// when the expectation is not fullfilled).
// when the expectation is not fulfilled).
if (Tok.is(tok::kw_init)) {
return !isa<ConstructorDecl>(CurDeclContext);
}
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/SDK/Foundation/NSStringAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1314,7 +1314,7 @@ extension String {
/// characters.
@warn_unused_result
public func addingPercentEncoding(
withAllowedCharaters allowedCharacters: NSCharacterSet
withAllowedCharacters allowedCharacters: NSCharacterSet
) -> String? {
// FIXME: the documentation states that this method can return nil if the
// transformation is not possible, without going into further details. The
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/core/Arrays.swift.gyb
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ public struct ${Self}<Element>
return Builtin.castToNativeObject(_buffer.owner)
}

// FIXME(ABI): move to an initalizer on _Buffer.
// FIXME(ABI): move to an initializer on _Buffer.
static internal func _copyBuffer(buffer: inout _Buffer) {
let newBuffer = _ContiguousArrayBuffer<Element>(
uninitializedCount: buffer.count, minimumCapacity: buffer.count)
Expand Down
4 changes: 2 additions & 2 deletions stdlib/public/core/CString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ extension String {
public static func decodeCString<Encoding : UnicodeCodec>(
cString: UnsafePointer<Encoding.CodeUnit>,
as encoding: Encoding.Type,
repairingInvalidCodeUnits isReparing: Bool = true)
repairingInvalidCodeUnits isRepairing: Bool = true)
-> (result: String, repairsMade: Bool)? {

if cString._isNull {
Expand All @@ -68,7 +68,7 @@ extension String {
start: cString, count: len)

let (stringBuffer, hadError) = _StringBuffer.fromCodeUnits(
buffer, encoding: encoding, repairIllFormedSequences: isReparing)
buffer, encoding: encoding, repairIllFormedSequences: isRepairing)
return stringBuffer.map {
(result: String(_storage: $0), repairsMade: hadError)
}
Expand Down
2 changes: 1 addition & 1 deletion stdlib/public/core/Collection.swift
Original file line number Diff line number Diff line change
Expand Up @@ -749,7 +749,7 @@ extension Collection {
fatalError("unavailable function can't be called")
}

@available(*, unavailable, message="Removed in Swift 3. Please use underestimatedCount peoperty.")
@available(*, unavailable, message="Removed in Swift 3. Please use underestimatedCount property.")
public func underestimateCount() -> Int {
fatalError("unavailable function can't be called")
}
Expand Down
2 changes: 1 addition & 1 deletion test/IRGen/enum_switch_singleton_enum_in_optional.sil
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ enum Optional<T> { case some(T), none }
class AClass {
}

protocol AProto {
protocol AProto {
}

enum AnEnum {
Expand Down
2 changes: 1 addition & 1 deletion test/Prototypes/CollectionTransformers.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public protocol ApproximateCountableSequence : Sequence {
var approximateCount: ApproximateCount { get }
}

/// A collection that provides an efficient way to spilt its index ranges.
/// A collection that provides an efficient way to split its index ranges.
public protocol SplittableCollection : Collection {
// We need this protocol so that collections with only forward or bidirectional
// traversals could customize their splitting behavior.
Expand Down