Skip to content

Commit

Permalink
fix(core): use correct variable name in parser example
Browse files Browse the repository at this point in the history
  • Loading branch information
Citymonstret committed Feb 2, 2024
1 parent a62d6da commit 54bf94c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/core/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -736,9 +736,9 @@ Returning a future is useful when the parsing needs to take place on a specific
@Override
public ArgumentParseResult<UUID> parse(
CommandContext<C> context,
CommandInput input
CommandInput commandInput
) {
final String input = input.peekString(); // Does not remove the string from the input!
final String input = commandInput.peekString(); // Does not remove the string from the input!
try {
final UUID uuid = UUID.fromString(input);
input.readString(); // Removes the string from the input.
Expand Down

0 comments on commit 54bf94c

Please sign in to comment.