Skip to content

Commit

Permalink
pointer: fix documentation
Browse files Browse the repository at this point in the history
Previously it uses event.Op{}, but such struct don't
exists anymore. Instead, it have a function with the
same name.

Signed-off-by: inkeliz <[email protected]>
  • Loading branch information
inkeliz authored and eliasnaur committed Jun 7, 2024
1 parent 56177c5 commit 1151eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions io/pointer/doc.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ For example:
var h1, h2 *Handler
area := clip.Rect(...).Push(ops)
event.Op{Tag: h1}.Add(Ops)
event.Op(Ops, h1)
area.Pop()
area := clip.Rect(...).Push(ops)
event.Op{Tag: h2}.Add(ops)
event.Op(Ops, h2)
area.Pop()
implies a tree of two inner nodes, each with one pointer handler attached.
Expand Down

0 comments on commit 1151eac

Please sign in to comment.