File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 /// ```
Original file line number Diff line number Diff line change 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
2727package struct UnsafeTransfer < Wrapped> {
2828 @usableFromInline
You can’t perform that action at this time.
0 commit comments