From 38973810d723b5c22aa1eb75831975fcfe48a439 Mon Sep 17 00:00:00 2001 From: onyx-and-iris <75868496+onyx-and-iris@users.noreply.github.com> Date: Sun, 16 Oct 2022 17:24:51 +0100 Subject: [PATCH] add variadic example in events section --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1718711..ecef787 100644 --- a/README.md +++ b/README.md @@ -481,9 +481,11 @@ By default level updates are disabled. Any event may be enabled or disabled. The example: ```go -vm.EventAdd("ldirty") +events := []string{"ldirty", "mdirty", "pdirty"} -vm.EventRemove("pdirty") +vm.EventAdd(events...) + +vm.EventRemove(events...) ``` ### Run tests