Skip to content

Commit

Permalink
Update usage-filestate.md
Browse files Browse the repository at this point in the history
  • Loading branch information
0xLeif authored Sep 27, 2024
1 parent 9755621 commit 5865fbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions documentation/usage-filestate.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct UserProfile: Codable {

extension Application {
var userProfile: FileState<UserProfile> {
fileState(id: "userProfile", initial: UserProfile(name: "Guest", age: 25))
fileState(filename: "userProfile", initial: UserProfile(name: "Guest", age: 25))
}
}

Expand Down Expand Up @@ -53,7 +53,7 @@ import SwiftUI

extension Application {
var largeDataset: FileState<[String]> {
fileState(id: "largeDataset", initial: [])
fileState(filename: "largeDataset", initial: [])
}
}

Expand Down

0 comments on commit 5865fbd

Please sign in to comment.