Skip to content

Commit

Permalink
Erase TestScheduler's value in the documentation (#6)
Browse files Browse the repository at this point in the history
* Erase `TestScheduler`'s value in the documentation

* wip

* wip
  • Loading branch information
tgrapperon authored Jan 7, 2023
1 parent b38c3fa commit d3e2a50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Dependencies/DependencyValues/MainQueue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/// counts the number of seconds it's onscreen:
///
/// ```
/// struct TimerModel: ObservableObject {
/// final class TimerModel: ObservableObject {
/// @Published var elapsed = 0
///
/// @Dependency(\.mainQueue) var mainQueue
Expand All @@ -33,7 +33,7 @@
/// func testFeature() {
/// let mainQueue = DispatchQueue.test
/// let model = withDependencies {
/// $0.mainQueue = mainQueue
/// $0.mainQueue = mainQueue.eraseToAnyScheduler()
/// } operation: {
/// TimerModel()
/// }
Expand Down

0 comments on commit d3e2a50

Please sign in to comment.