Skip to content

Commit

Permalink
fix: correct syntax for time.Sleep function
Browse files Browse the repository at this point in the history
Signed-off-by: Rishav Mehra <rishavmehra61@gmail.com>
  • Loading branch information
rishavmehra committed Oct 3, 2024
1 parent 8c0d565 commit 6786578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http-pokeapi/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type apiconfig struct {
}

func main() {
time.Sleep[2*time.Second]
time.Sleep(2 * time.Second)
cfg := &apiconfig{
client: pokeapi.Client{},
}
Expand Down

0 comments on commit 6786578

Please sign in to comment.