From 1151eac07d84f4f73b3b6733f2ba991e49ccbcd7 Mon Sep 17 00:00:00 2001 From: inkeliz Date: Sun, 2 Jun 2024 17:16:05 +0100 Subject: [PATCH] pointer: fix documentation 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 --- io/pointer/doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/io/pointer/doc.go b/io/pointer/doc.go index c70ef8aea..ad2993d2e 100644 --- a/io/pointer/doc.go +++ b/io/pointer/doc.go @@ -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.