Skip to content

Commit ddb6ed3

Browse files
authored
Update README.md
1 parent 5543311 commit ddb6ed3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ Documentation is available at [https://trendyol.github.io/kediatR/](https://tren
1515
## Show me the code
1616

1717
```kotlin
18-
class PingCommand : Command // or
18+
class PingCommand : Command.Unit // or
1919
class PingQuery : Query<String> // or
2020
class PingNotification : Notification
21-
class PingCommandHandler : CommandHandler<PingCommand> {
21+
class PingCommandHandler : CommandHandler.Unit<PingCommand> {
2222
override suspend fun handle(command: PingCommand) {
2323
println("Pong!")
2424
}

0 commit comments

Comments
 (0)