Corrects comment for optional text prompt (#1857)

This commit is contained in:
Mustafa Al-Janabi
2025-07-16 00:00:29 +02:00
committed by GitHub
parent f32f80dc57
commit 6ad814cab0

View File

@@ -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());