Skip to content

Commit

Permalink
examples: Reflect naming change
Browse files Browse the repository at this point in the history
  • Loading branch information
tmc committed Jul 5, 2023
1 parent 8c1a785 commit 32ce7c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/userdefaults/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

func main() {
ud := core.NSUserDefaults_standardUserDefaults()
ud.SetURL_forKey_(core.URL("https://github.com/progrium/macdriver"), core.String("macdriver"))
u := ud.URLForKey_(core.String("macdriver"))
ud.SetURL_forKey(core.URL("https://github.com/progrium/macdriver"), core.String("macdriver"))
u := ud.URLForKey(core.String("macdriver"))
fmt.Println("looked up 'macdriver' key in NSUserDefaults and got:", u)
}

0 comments on commit 32ce7c5

Please sign in to comment.