Fixed doc code formatting.
This commit is contained in:
parent
62c53a6b4d
commit
6da0fcb7be
@ -1009,11 +1009,11 @@ A queue starts by declaring a `Task` _type_, which is the object that gets place
|
|||||||
```go
|
```go
|
||||||
type MyTask struct {
|
type MyTask struct {
|
||||||
Text string
|
Text string
|
||||||
Num int
|
Num int
|
||||||
}
|
}
|
||||||
|
|
||||||
func (t MyTask) Name() string {
|
func (t MyTask) Name() string {
|
||||||
return "my_task"
|
return "my_task"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user