Skip to content

Commit 4d5215d

Browse files
authored
Update README.md
1 parent ae124b9 commit 4d5215d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ robust solution with a clean, idiomatic API.
4242
```java
4343
@Command("greet user")
4444
@Description("Sends a greeting message")
45-
public void greet(CommandActor actor, @Optional("World") String name) {
45+
public void greet(CommandActor actor, @Default("World") String name) {
4646
actor.reply("Hello, " + name + "!");
4747
}
4848
```

0 commit comments

Comments
 (0)