From 45c2adfa45b308b9c5ab4c9986b7daf6990a9488 Mon Sep 17 00:00:00 2001 From: Genevieve Warren <24882762+gewarren@users.noreply.github.com> Date: Tue, 7 Jan 2025 20:22:22 -0800 Subject: [PATCH] update output --- snippets/csharp/System/Array/Clear/example.cs | 12 +++++++++--- .../system.Array.Clear/fs/example.fs | 12 +++++++++++- .../system.Array.Clear/vb/example.vb | 12 +++++++++--- 3 files changed, 29 insertions(+), 7 deletions(-) diff --git a/snippets/csharp/System/Array/Clear/example.cs b/snippets/csharp/System/Array/Clear/example.cs index fa98a4b766e..635e62212c7 100644 --- a/snippets/csharp/System/Array/Clear/example.cs +++ b/snippets/csharp/System/Array/Clear/example.cs @@ -107,15 +107,21 @@ public static void RunIt() * Three dimensions (Rank=3): * 1 2 * 3 4 - * + * * 5 6 * 7 8 - * + * + * 9 10 + * 11 12 + * * Array.Clear(numbers3, 2, 5) * 1 2 * 0 0 - * + * * 0 0 * 0 8 + * + * 9 10 + * 11 12 */ // diff --git a/snippets/fsharp/VS_Snippets_CLR_System/system.Array.Clear/fs/example.fs b/snippets/fsharp/VS_Snippets_CLR_System/system.Array.Clear/fs/example.fs index 2a64ed13883..aef91e76528 100644 --- a/snippets/fsharp/VS_Snippets_CLR_System/system.Array.Clear/fs/example.fs +++ b/snippets/fsharp/VS_Snippets_CLR_System/system.Array.Clear/fs/example.fs @@ -42,8 +42,12 @@ numbers3[1, 0, 0] <- 5 numbers3[1, 1, 0] <- 7 numbers3[1, 0, 1] <- 6 numbers3[1, 1, 1] <- 8 +numbers3[2, 0, 0] <- 9 +numbers3[2, 1, 0] <- 10 +numbers3[2, 0, 1] <- 11 +numbers3[2, 1, 1] <- 12 -for i = 0 to 1 do +for i = 0 to 2 do for j = 0 to 1 do for k = 0 to 1 do printf $"{numbers3[i, j, k]} " @@ -85,6 +89,9 @@ for i = 0 to 1 do // 5 6 // 7 8 // +// 9 10 +// 11 12 +// // Array.Clear(numbers3, 2, 5) // 1 2 // 0 0 @@ -92,4 +99,7 @@ for i = 0 to 1 do // 0 0 // 0 8 // +// 9 10 +// 11 12 +// // diff --git a/snippets/visualbasic/VS_Snippets_CLR_System/system.Array.Clear/vb/example.vb b/snippets/visualbasic/VS_Snippets_CLR_System/system.Array.Clear/vb/example.vb index abc9ef066bc..6a22cf4ece0 100644 --- a/snippets/visualbasic/VS_Snippets_CLR_System/system.Array.Clear/vb/example.vb +++ b/snippets/visualbasic/VS_Snippets_CLR_System/system.Array.Clear/vb/example.vb @@ -88,14 +88,20 @@ End Module ' Three dimensions (Rank=3): ' 1 2 ' 3 4 -' +' ' 5 6 ' 7 8 -' +' +' 9 10 +' 11 12 +' ' Array.Clear(numbers3, 2, 5) ' 1 2 ' 0 0 -' +' ' 0 0 ' 0 8 +' +' 9 10 +' 11 12 '