Skip to content

Commit b640d77

Browse files
committed
docs: update example
1 parent 257ef51 commit b640d77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,11 @@ func main() {
221221
ctx := dew.NewContext(context.Background(), bus)
222222

223223
// Execute the query.
224-
result, err := dew.Query(ctx, &HelloQuery{Name: "Dew"})
224+
query, err := dew.Query(ctx, &HelloQuery{Name: "Dew"})
225225
if err != nil {
226226
fmt.Println("Error:", err)
227227
} else {
228-
fmt.Printf("Result: %+v\n", result)
228+
fmt.Printf("Result: %+v\n", query.Result)
229229
}
230230
}
231231

0 commit comments

Comments
 (0)