Skip to content

Commit

Permalink
Update documentation code sample (#19)
Browse files Browse the repository at this point in the history
* `ViewModel` -> `PilotViewModel`

* Remove blank space
  • Loading branch information
laurentboileau authored Jul 25, 2024
1 parent b1ff345 commit b513f95
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/viewmodel.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
## Usage
#### Common
```kotlin
class YourViewModel : ViewModel() {
val someData: StateFlow<String> = MutableStateFlow("")
class YourViewModel : PilotViewModel() {
val someData: StateFlow<String> = MutableStateFlow("")
val someNullableData: StateFlow<String?> = MutableStateFlow(null)

fun yourFunction() {
Expand Down

0 comments on commit b513f95

Please sign in to comment.