aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md15
1 files 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<EventType>(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<EventType> {
...listener body ...
}
-val listener1
- get() = listener<EventType> {
- ...listener body ...
- }
+val listener1 get() = listener<EventType> {
+ ...listener body ...
+}
fun listener2() = listener<EventType> {
...listener body ...
@@ -143,12 +142,12 @@ fun listener2() = listener<EventType> {
```
```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...
});
}