diff --git a/README.md b/README.md index 5ef89e0..100dbad 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ Easily interface with Bluetooth peripherals in new or existing projects through - [x] Alternate callback-based API for codebases not using Swift Concurrency - [x] Subscribe to peripheral discoveries, value updates, and more through `AsyncStream` - [x] Easy await-ing of `CentralManager` state -- [x] Staticly typed characteristics +- [x] Statically typed characteristics - [x] Thread safe - [x] Zero inherited dependencies - [x] Tested with included `SwiftBluetoothMock` library @@ -60,7 +60,7 @@ central.connect(peripheral) { result in // Connected! } ``` -> Methods often now have 3 overloads. One marked `async`, one with a `completionHandler`, and the original CoreBluetooth verision. Meaning you can choose whichever is most convienient at the time. +> Methods often now have 3 overloads. One marked `async`, one with a `completionHandler`, and the original CoreBluetooth version. Meaning you can choose whichever is most convenient at the time. #### Stream discovered peripherals @@ -74,7 +74,7 @@ for await peripheral in await central.scanForPeripherals() { #### Defining characteristics -Characteristics can be staticly defined on the stock `Characteristic` type, which removes the burden of keeping track of `CBCharacteristic` instances around your app. +Characteristics can be statically defined on the stock `Characteristic` type, which removes the burden of keeping track of `CBCharacteristic` instances around your app. ```swift extension Characteristic { @@ -88,7 +88,7 @@ try await myPeripheral.readValue(for: .someCharacteristic) #### Watching with callbacks -Peristent tasks return a `CancellableTask` that needs to be cancelled when you're done. +Persistent tasks return a `CancellableTask` that needs to be cancelled when you're done. ```swift let task = central.scanForPeripherals { peripheral in diff --git a/Sources/SwiftBluetooth/Extensions/AsyncStream+first.swift b/Sources/SwiftBluetooth/Extensions/AsyncStream+first.swift index a8fe31e..3329dd2 100644 --- a/Sources/SwiftBluetooth/Extensions/AsyncStream+first.swift +++ b/Sources/SwiftBluetooth/Extensions/AsyncStream+first.swift @@ -1,6 +1,6 @@ import Foundation -// Convienence API for people interfacing with AsyncStream. Not sure why this isn't in Foundation by default... +// Convenience API for people interfacing with AsyncStream. Not sure why this isn't in Foundation by default... public extension AsyncStream { var first: Element? { get async { diff --git a/Sources/SwiftBluetoothMock/CoreBluetoothMock.swift b/Sources/SwiftBluetoothMock/CoreBluetoothMock.swift index 8aed0cc..3dfdedb 100644 --- a/Sources/SwiftBluetoothMock/CoreBluetoothMock.swift +++ b/Sources/SwiftBluetoothMock/CoreBluetoothMock.swift @@ -33,7 +33,7 @@ import CoreBluetoothMock // Copy this file to your project to start using CoreBluetoothMock classes // without having to refactor any of your code. You will just have to remove // the imports to CoreBluetooth to fix conflicts and initiate the manager -// using CBCentralManagerFactory, instad of just creating a CBCentralManager. +// using CBCentralManagerFactory, instead of just creating a CBCentralManager. // disabled for Xcode 12.5 beta // typealias CBPeer = CBMPeer diff --git a/Tests/SwiftBluetoothTests/LostConnectionPeripheralTests.swift b/Tests/SwiftBluetoothTests/LostConnectionPeripheralTests.swift index fd88918..17cc44e 100644 --- a/Tests/SwiftBluetoothTests/LostConnectionPeripheralTests.swift +++ b/Tests/SwiftBluetoothTests/LostConnectionPeripheralTests.swift @@ -187,7 +187,7 @@ final class LostConnectionPeripheralTests: CentralPeripheralTestCase { XCTAssertNil(characteristic.value) - // TODO: Break this out into a seperate AsyncSubscriptionQueue test? + // TODO: Break this out into a separate AsyncSubscriptionQueue test? // Will also need to test that SwiftBluetooth.Peripheral implements a shared DispatchQueue (like this test is doing) var ran = 0 let exp = XCTestExpectation()