Skip to content

Commit b36dc57

Browse files
author
Josip Rezić
committed
Fix createScreen example issue
1 parent f0e1914 commit b36dc57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/declaring-types-notes.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Note that it's quite common to create your own versions of `createScreen`, to al
6464

6565
```swift
6666
public static func createScreen(username: String) -> Screen {
67-
let initialState = LoginScreenModule.State(username: "Billie")
67+
let initialState = LoginScreenModule.State(username: username)
6868
return createScreen(with: initialState)
6969
}
7070

0 commit comments

Comments
 (0)