Skip to content

Commit

Permalink
docs: update example
Browse files Browse the repository at this point in the history
  • Loading branch information
yohamta committed Oct 3, 2024
1 parent 257ef51 commit b640d77
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ func main() {
ctx := dew.NewContext(context.Background(), bus)

// Execute the query.
result, err := dew.Query(ctx, &HelloQuery{Name: "Dew"})
query, err := dew.Query(ctx, &HelloQuery{Name: "Dew"})
if err != nil {
fmt.Println("Error:", err)
} else {
fmt.Printf("Result: %+v\n", result)
fmt.Printf("Result: %+v\n", query.Result)
}
}

Expand Down

0 comments on commit b640d77

Please sign in to comment.