Skip to content

Commit 6132700

Browse files
committed
[Gardening] Fix Some Thinkos in the Docs
1 parent 7fe3187 commit 6132700

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/Sema/TypeCheckDeclOverride.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1009,7 +1009,7 @@ static void checkOverrideAccessControl(ValueDecl *baseDecl, ValueDecl *decl,
10091009
!baseHasOpenAccess &&
10101010
baseDecl->getModuleContext() != decl->getModuleContext() &&
10111011
!isa<ConstructorDecl>(decl)) {
1012-
// NSObject.hashValue and NSObject.hash(into:) is not overridable;
1012+
// NSObject.hashValue and NSObject.hash(into:) are not overridable;
10131013
// one should override NSObject.hash instead.
10141014
if (isNSObjectHashValue(baseDecl)) {
10151015
diags.diagnose(decl, diag::override_nsobject_hashvalue_error)
@@ -1811,7 +1811,7 @@ static bool checkSingleOverride(ValueDecl *override, ValueDecl *base) {
18111811
(isa<ExtensionDecl>(base->getDeclContext()) ||
18121812
isa<ExtensionDecl>(override->getDeclContext())) &&
18131813
!base->isObjC()) {
1814-
// Suppress this diagnostic for overrides of a non-open NSObject.Hashable
1814+
// Suppress this diagnostic for overrides of non-open NSObject.Hashable
18151815
// interfaces; these are diagnosed elsewhere. An error message complaining
18161816
// about extensions would be misleading in this case; the correct fix is to
18171817
// override NSObject.hash instead.

stdlib/public/Darwin/ObjectiveC/ObjectiveC.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ extension NSObject : Equatable, Hashable {
231231
///
232232
/// NSObject implements this by feeding `self.hash` to the hasher.
233233
///
234-
/// `NSObject.hash(into:)` is not overridable; subclasses can customize
234+
/// 'NSObject.hash(into:)' is not overridable; subclasses can customize
235235
/// hashing by overriding the `hash` property.
236236
public func hash(into hasher: inout Hasher) {
237237
hasher.combine(self.hash)

0 commit comments

Comments
 (0)