Skip to content

Commit 0b505f5

Browse files
committed
fix readme example
1 parent 5d762c4 commit 0b505f5

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
@@ -30,7 +30,7 @@ func main() {
3030
task := boomerang.NewTask(
3131
"greeter",
3232
"some-unique-id",
33-
"Hello!",
33+
[]byte("Hello!"),
3434
)
3535

3636
// Schedule task for execution every second starting from now
@@ -39,7 +39,7 @@ func main() {
3939
}
4040

4141
sch.On(ctx, "greeter", func(ctx context.Context, task *boomerang.Task) {
42-
fmt.Println(task.Data)
42+
fmt.Printf("%s\n", task.Data)
4343
})
4444
}
4545
```

0 commit comments

Comments
 (0)