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).

ReleaseTooling/Sources/ZipBuilder/FrameworkBuilder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ struct FrameworkBuilder {
456456
// Instead it use build options to specify them. For the zip build, we need the module maps to
457457
// include the dependent frameworks and libraries. Therefore we reconstruct them by parsing
458458
// the CocoaPods config files and add them here.
459-
// Currently we only do the construction for Objective C since Swift Module directories require
459+
// Currently we only do the construction for Objective-C since Swift Module directories require
460460
// several other files. See https://github.com/firebase/firebase-ios-sdk/pull/5040.
461461
// Therefore, for Swift we do a simple copy of the Modules files from an Xcode build.
462462
// This is sufficient for the testing done so far, but more testing is required to determine

SwiftDashboard.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ tasks for additional Swift improvements.
2121
| **Swift Doc Scrub** ||||||||||||||||||
2222

2323
### Other Projects
24-
- Tooling to surface full list of automatically generated Swift API from Objective C and validate.
24+
- Tooling to surface full list of automatically generated Swift API from Objective-C and validate.
2525
- Improve singleton naming scheme. Move singletons into a Firebase namespace, like `Firebase.auth()`, `Firebase.storage()`, etc.
2626
- Swift Generics. Update APIs that are using weakly typed information to use proper generics.
2727

2828
## Notes
2929
2. Tests exist. Coverage to be confirmed.
3030
4. `NS_ERROR_ENUM` used but a larger audit is still needed for more localized errors.
31-
5. Still needs to unify Objective C and Swift errors.
31+
5. Still needs to unify Objective-C and Swift errors.
3232
6. One property wrapper added in [#8614](https://github.com/firebase/firebase-ios-sdk/pull/8614). More to go.
3333
7. `record(Error)` API should be expanded to collect Swift Errors as well as NSErrors.
3434

@@ -47,7 +47,7 @@ for Storage.
4747
Property Wrappers and likely the SwiftUI lifecycle bits, but an audit and improvements could likely be made. The existing FIAM and Analytics View modifier
4848
APIs would fit into this category.
4949
* **Property Wrappers**: Property wrappers are used to improve the API.
50-
* **Swift Doc Scrub**: Review and update to change Objective C types and call examples to Swift. In addition to updating the documentation content, we
50+
* **Swift Doc Scrub**: Review and update to change Objective-C types and call examples to Swift. In addition to updating the documentation content, we
5151
should also investigate using DocC to format the docs.
5252

5353
## Columns (Firebase Products)

scripts/style.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ s%^./%%
158158
# Sources pulled in by the Mint package manager
159159
\%^Mint% d
160160
161-
# Auth Sample Objective C does not format well
161+
# Auth Sample Objective-C does not format well
162162
\%^(FirebaseAuth/Tests/Sample/Sample)/% d
163163
164164
# Keep Firebase.h indenting

scripts/test_catalyst.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
# and test.
2424

2525
# TODO - Determine why test specs that include `requires_app_host` fail to
26-
# launch tests. Locally, they will pass if the only Objective C unit test scheme
26+
# launch tests. Locally, they will pass if the only Objective-C unit test scheme
2727
# is specified. However, on GHA, they fail to launch both from the test scheme
2828
# and the app scheme.
2929

0 commit comments

Comments
 (0)