Skip to content

Commit 74210c7

Browse files
committed
Fix duplicate snippet tags
1 parent e578ea2 commit 74210c7

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

docs/csharp/fundamentals/tutorials/file-based-programs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Build file-based apps
33
description: File-based apps are command line utilities that are built and execute without a project file. The build and run commands are implicit. New syntax supports project settings in source.
4-
ms.date: 08/14/2025
4+
ms.date: 12/12/2025
55
ms.topic: tutorial
66
ai-usage: ai-assisted
77
#customer intent: As a developer, I want to build utilities so that more work is automated.
@@ -254,7 +254,7 @@ Now, finish the app to use the parsed options and write the output. First, defin
254254

255255
1. Create a local function to write the ASCII art with the specified delay. This function writes each message in the record with the specified delay between each message:
256256

257-
:::code language="csharp" source="./snippets/file-based-programs/AsciiArt.cs" id="WriteAscii":::
257+
:::code language="csharp" source="./snippets/file-based-programs/AsciiArt.cs" id="WriteAsciiArt":::
258258

259259
1. Replace the `if` clause you wrote earlier with the following code that processes the command line arguments and write the output:
260260

docs/csharp/fundamentals/tutorials/snippets/file-based-programs/AsciiArt.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ async Task<AsciiMessageOptions> ProcessParseResults(ParseResult result)
7171
}
7272
// </ProcessParsedArgs>
7373

74-
// <WriteAscii>
74+
75+
// <WriteAsciiArt>
7576
async Task WriteAsciiArt(AsciiMessageOptions options)
7677
{
7778
foreach (string message in options.Messages)
@@ -80,7 +81,7 @@ async Task WriteAsciiArt(AsciiMessageOptions options)
8081
await Task.Delay(options.Delay);
8182
}
8283
}
83-
// </WriteAscii>
84+
// </WriteAsciiArt>
8485

8586
// <Record>
8687
public record AsciiMessageOptions(string[] Messages, int Delay);

0 commit comments

Comments
 (0)