Skip to content

Commit cd4985f

Browse files
authored
Minor doc fixes (#805)
1 parent b7f16b0 commit cd4985f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/Hummingbird/Router/RouterMethods.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ extension RouterMethods {
6161
/// For the transform to work the `Source` of the transformed `RequestContext` needs
6262
/// to be the original `RequestContext` eg
6363
/// ```
64-
/// struct TransformedRequestContext {
64+
/// struct TransformedRequestContext: RequestContext {
6565
/// typealias Source = BasicRequestContext
6666
/// var coreContext: CoreRequestContextStorage
6767
/// init(source: Source) {
@@ -91,7 +91,7 @@ extension RouterMethods {
9191
/// typealias ParentContext = BasicRequestContext
9292
/// var coreContext: CoreRequestContextStorage
9393
/// init(context: ParentContext) throws {
94-
/// self.coreContext = .init(source: source)
94+
/// self.coreContext = .init(source: context)
9595
/// }
9696
/// }
9797
/// ```

Sources/HummingbirdCore/Utils/UnsafeTransfer.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222

2323
/// ``UnsafeTransfer`` can be used to make non-`Sendable` values `Sendable`.
2424
/// As the name implies, the usage of this is unsafe because it disables the sendable checking of the compiler.
25-
/// It can be used similar to `@unsafe Sendable` but for values instead of types.
25+
/// It can be used similar to `@unchecked Sendable` but for values instead of types.
2626
@usableFromInline
2727
package struct UnsafeTransfer<Wrapped> {
2828
@usableFromInline

0 commit comments

Comments
 (0)