mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-17 17:32:50 +08:00
Fix prompt example docs
This commit is contained in:
parent
d70ad661fc
commit
aaf77c3b25
@ -58,8 +58,8 @@ var age = AnsiConsole.Prompt(
|
|||||||
{
|
{
|
||||||
return age switch
|
return age switch
|
||||||
{
|
{
|
||||||
<= 99 => ValidationResult.Error("[red]Too low[/]"),
|
< 99 => ValidationResult.Error("[red]Too low[/]"),
|
||||||
>= 99 => ValidationResult.Error("[red]Too high[/]"),
|
> 99 => ValidationResult.Error("[red]Too high[/]"),
|
||||||
_ => ValidationResult.Success(),
|
_ => ValidationResult.Success(),
|
||||||
};
|
};
|
||||||
}));
|
}));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user