Skip to content

Commit 26f49f5

Browse files
onevcatp4checo
authored andcommitted
Fix the documentation of DependencyValues (#1592)
(cherry picked from commit 0542cbffe7458af6ab957f0aed25f2cfdabe48cc)
1 parent a11a984 commit 26f49f5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/Dependencies/DependencyValues.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ import XCTestDynamicOverlay
4242
///
4343
/// ```swift
4444
/// extension DependencyValues {
45-
/// get { self[MyValueKey.self] }
46-
/// set { self[MyValueKey.self] = newValue }
45+
/// var myValue: Int {
46+
/// get { self[MyValueKey.self] }
47+
/// set { self[MyValueKey.self] = newValue }
48+
/// }
4749
/// }
4850
/// ```
4951
///

0 commit comments

Comments
 (0)