add variadic example in events section

This commit is contained in:
onyx-and-iris 2022-10-16 17:24:51 +01:00
parent be6a49e3bc
commit 38973810d7

View File

@ -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