Skip to content

Commit 8d65537

Browse files
authored
Fix typos (#9802)
1 parent 68a86ec commit 8d65537

File tree

14 files changed

+16
-16
lines changed

14 files changed

+16
-16
lines changed

AddNewPod.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ For top-level Firebase pods that map to documented products:
6868
* Make sure the public umbrella header is imported via [Firebase.h](CoreOnly/Sources/Firebase.h)
6969
wrapped in `__has_include`. Follow the existing examples for details.
7070
* Update [Firebase.podspec](Firebase.podspec).
71-
* Register Objective C library via registerInternalLibrary API like this
71+
* Register Objective-C library via registerInternalLibrary API like this
7272
[AppCheck example](FirebaseAppCheck/Sources/Core/FIRAppCheck.m).
7373
* Register Swift library by creating a component like
7474
[Functions example](FirebaseFunctions/Sources/Internal/FunctionsComponent.swift) and

FirebaseFunctions/Tests/Integration/IntegrationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import FirebaseMessagingInterop
2020
import XCTest
2121

2222
/// This file was intitialized as a direct port of `FirebaseFunctionsSwift/Tests/IntegrationTests.swift`
23-
/// which itself was ported from the Objective C `FirebaseFunctions/Tests/Integration/FIRIntegrationTests.m`
23+
/// which itself was ported from the Objective-C `FirebaseFunctions/Tests/Integration/FIRIntegrationTests.m`
2424
///
2525
/// The tests require the emulator to be running with `FirebaseFunctions/Backend/start.sh synchronous`
2626
/// The Firebase Functions called in the tests are implemented in `FirebaseFunctions/Backend/index.js`.

FirebaseMessaging/Sources/FIRMessagingRemoteNotificationsProxy.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ - (void)unswizzleSelector:(SEL)selector inClass:(Class)klass {
339339
} else {
340340
// This class originally did not have an implementation for this selector.
341341

342-
// We can't actually remove methods in Objective C 2.0, but we could set
342+
// We can't actually remove methods in Objective-C 2.0, but we could set
343343
// its method to something non-existent. This should give us the same
344344
// behavior as if the method was not implemented.
345345
// See: http://stackoverflow.com/a/8276527/9849

FirebaseStorage/Sources/Result.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Foundation
2121
/// - completion: A completion block returning a `Result` enum with either a generic object or
2222
/// an `Error`.
2323
/// - Returns: A closure parameterized with an optional generic and optional `Error` to match
24-
/// Objective C APIs.
24+
/// Objective-C APIs.
2525
private func getResultCallback<T>(completion: @escaping (Result<T, Error>) -> Void) -> (_: T?,
2626
_: Error?)
2727
-> Void {

FirebaseStorage/Tests/ObjCIntegration/ObjCPPAPITests.mm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ - (FIRStorageErrorCode)errorCodes:(NSError *)error {
150150
case FIRStorageErrorCodeInvalidArgument:
151151
return (FIRStorageErrorCode)error.code;
152152
}
153-
// The cast is not needed in plain Objective C.
153+
// The cast is not needed in plain Objective-C.
154154
return (FIRStorageErrorCode)error.code;
155155
}
156156

FirebaseStorageInternal.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Pod::Spec.new do |s|
44
s.summary = 'Firebase Storage'
55

66
s.description = <<-DESC
7-
Objective C Implementations for FirebaseStorage. This pod should not be directly imported.
7+
Objective-C Implementations for FirebaseStorage. This pod should not be directly imported.
88
DESC
99

1010
s.homepage = 'https://firebase.google.com'

FirebaseStorageInternal/Sources/FIRStorageDownloadTask_Private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ NS_ASSUME_NONNULL_BEGIN
5050

5151
/**
5252
* Cancels the download task and passes an appropriate error to the developer.
53-
* @param error NSError to propegate to the developer.
53+
* @param error NSError to propagate to the developer.
5454
*/
5555
- (void)cancelWithError:(NSError *)error;
5656

FirebaseStorageInternal/Sources/Public/FirebaseStorageInternal/FIRStorageConstants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
NS_ASSUME_NONNULL_BEGIN
2525

2626
// TODO: The typedefs are not portable to Swift as typealias's to make available
27-
// back to Objective C. See https://stackoverflow.com/a/48069912/556617
27+
// back to Objective-C. See https://stackoverflow.com/a/48069912/556617
2828
/**
2929
* NSString typedef representing a task listener handle.
3030
*/

Firestore/core/src/model/field_path.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ StatusOr<FieldPath> FieldPath::FromServerFormatView(absl::string_view path) {
146146
while (i < path.size()) {
147147
const char c = path[i];
148148
// std::string (and string_view) may contain embedded nulls. For full
149-
// compatibility with Objective C behavior, finish upon encountering the
149+
// compatibility with Objective-C behavior, finish upon encountering the
150150
// first terminating null.
151151
if (c == '\0') {
152152
break;

ROADMAP.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ Firebase should be better integrated with SwiftUI apps. See SwiftUI related
7777

7878
Evaluate impact on Firebase APIs of the
7979
[Swift Async/await proposal](https://github.com/apple/swift-evolution/blob/main/proposals/0296-async-await.md).
80-
For example, Objective C callback APIs that return a value do not get an
80+
For example, Objective-C callback APIs that return a value do not get an
8181
async/await API automatically generated and an explicit function may need to be
8282
added. See these
8383
[Firebase Storage examples](https://github.com/firebase/firebase-ios-sdk/blob/master/FirebaseStorage/Sources/AsyncAwait.swift).

0 commit comments

Comments
 (0)