mirror of
https://github.com/spectreconsole/spectre.console.git
synced 2025-10-25 15:19:23 +00:00
Corrects comment for optional text prompt (#1857)
This commit is contained in:
committed by
GitHub
parent
f32f80dc57
commit
6ad814cab0
@@ -197,7 +197,7 @@ Console.WriteLine($"Your password is {password}");
|
||||
### Usage
|
||||
|
||||
```csharp
|
||||
// Ask the user to enter the password
|
||||
// Ask for the user's favorite color (optional)
|
||||
var color = AnsiConsole.Prompt(
|
||||
new TextPrompt<string>("[[Optional]] Favorite color?")
|
||||
.AllowEmpty());
|
||||
|
||||
Reference in New Issue
Block a user