From fd1d00d92a34ce2fdfd61a6ee8a03e1445adcba9 Mon Sep 17 00:00:00 2001 From: bush <101901339+therealbush@users.noreply.github.com> Date: Mon, 25 Apr 2022 13:55:44 -0700 Subject: Update README.md --- README.md | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index d7d8d17..880e3fd 100644 --- a/README.md +++ b/README.md @@ -117,7 +117,7 @@ listener(priority = 0, parallel = false, receiveCancelled = false) { ``` ```java -listener(EventType.class,0,false,false,event->{ +listener(EventType.class, 0, false, false, event -> { ...listener body... }); ``` @@ -132,10 +132,9 @@ val listener0 = listener { ...listener body ... } -val listener1 - get() = listener { - ...listener body ... - } +val listener1 get() = listener { + ...listener body ... +} fun listener2() = listener { ...listener body ... @@ -143,12 +142,12 @@ fun listener2() = listener { ``` ```java -public Listener listener0=listener(EventType.class,event->{ +public Listener listener0 = listener(EventType.class, event -> { ...listener body... }); -public Listener listener1(){ - return listener(EventType.class,event->{ +public Listener listener1() { + return listener(EventType.class, event -> { ...listener body... }); } -- cgit