From bd3137e5fe8f3e4c1505382c0fda50ab08fcb389 Mon Sep 17 00:00:00 2001 From: Maira Wenzel Date: Mon, 12 Nov 2018 13:03:49 -0800 Subject: [PATCH] fix typos --- .../Generic.LinkedList/cpp/source.cpp | 4 +- .../Generic.LinkedList/cs/source.cs | 4 +- .../Generic.LinkedList/vb/source.vb | 39 +++++++++++++------ 3 files changed, 31 insertions(+), 16 deletions(-) diff --git a/snippets/cpp/VS_Snippets_CLR/Generic.LinkedList/cpp/source.cpp b/snippets/cpp/VS_Snippets_CLR/Generic.LinkedList/cpp/source.cpp index c78faa95193..0c5c1dafaba 100644 --- a/snippets/cpp/VS_Snippets_CLR/Generic.LinkedList/cpp/source.cpp +++ b/snippets/cpp/VS_Snippets_CLR/Generic.LinkedList/cpp/source.cpp @@ -33,7 +33,7 @@ public ref class Example // Display(sentence, "Test 2: Move first node to be last node:"); - // Change the last node be 'yesterday'. + // Change the last node to 'yesterday'. sentence->RemoveLast(); sentence->AddLast("yesterday"); Display(sentence, "Test 3: Change the last node to 'yesterday':"); @@ -48,7 +48,7 @@ public ref class Example // - // Indicate, by using parentheisis, the last occurence of 'the'. + // Indicate the last occurence of 'the'. sentence->RemoveFirst(); LinkedListNode^ current = sentence->FindLast("the"); // diff --git a/snippets/csharp/VS_Snippets_CLR/Generic.LinkedList/cs/source.cs b/snippets/csharp/VS_Snippets_CLR/Generic.LinkedList/cs/source.cs index 3c55050e650..b77c69d95d8 100644 --- a/snippets/csharp/VS_Snippets_CLR/Generic.LinkedList/cs/source.cs +++ b/snippets/csharp/VS_Snippets_CLR/Generic.LinkedList/cs/source.cs @@ -29,7 +29,7 @@ public static void Main() // Display(sentence, "Test 2: Move first node to be last node:"); - // Change the last node be 'yesterday'. + // Change the last node to 'yesterday'. sentence.RemoveLast(); sentence.AddLast("yesterday"); Display(sentence, "Test 3: Change the last node to 'yesterday':"); @@ -44,7 +44,7 @@ public static void Main() // - // Indicate, by using parentheisis, the last occurence of 'the'. + // Indicate the last occurence of 'the'. sentence.RemoveFirst(); LinkedListNode current = sentence.FindLast("the"); // diff --git a/snippets/visualbasic/VS_Snippets_CLR/Generic.LinkedList/vb/source.vb b/snippets/visualbasic/VS_Snippets_CLR/Generic.LinkedList/vb/source.vb index cd03a86f659..3c682e48046 100644 --- a/snippets/visualbasic/VS_Snippets_CLR/Generic.LinkedList/vb/source.vb +++ b/snippets/visualbasic/VS_Snippets_CLR/Generic.LinkedList/vb/source.vb @@ -24,10 +24,10 @@ Public Class Example sentence.AddLast(mark1) ' Display(sentence, "Test 2: Move first node to be last node:") - ' Change the last node be 'later'. + ' Change the last node to 'yesterday'. sentence.RemoveLast() - sentence.AddLast("later") - Display(sentence, "Test 3: Change the last node to 'later':") + sentence.AddLast("yesterday") + Display(sentence, "Test 3: Change the last node to 'yesterday':") ' ' Move the last node to be the first node. mark1 = sentence.Last @@ -36,7 +36,7 @@ Public Class Example ' Display(sentence, "Test 4: Move last node to be first node:") ' - ' Indicate, by using parentheisis, the last occurence of 'the'. + ' Indicate the last occurence of 'the'. sentence.RemoveFirst() Dim current As LinkedListNode(Of String) = sentence.FindLast("the") ' @@ -159,35 +159,50 @@ End Class 'The linked list values: 'the fox jumps over the dog 'Test 1: Add 'today' to beginning of the list: -'today the fox jumps over the dog +'today the fox jumps over the dog + 'Test 2: Move first node to be last node: -'the fox jumps over the dog today -'Test 3: Change the last node to 'later': -'the fox jumps over the dog later +'the fox jumps over the dog today + +'Test 3: Change the last node to 'yesterday': +'the fox jumps over the dog yesterday + 'Test 4: Move last node to be first node: -'later the fox jumps over the dog +'yesterday the fox jumps over the dog + 'Test 5: Indicate last occurence of 'the': 'the fox jumps over (the) dog + 'Test 6: Add 'lazy' and 'old' after 'the': 'the fox jumps over (the) lazy old dog + 'Test 7: Indicate the 'fox' node: 'the (fox) jumps over the lazy old dog + 'Test 8: Add 'quick' and 'brown' before 'fox': 'the quick brown (fox) jumps over the lazy old dog + 'Test 9: Indicate the 'dog' node: 'the quick brown fox jumps over the lazy old (dog) + 'Test 10: Throw exception by adding node (fox) already in the list: 'Exception message: The LinkedList node belongs a LinkedList. + 'Test 11: Move a referenced node (fox) before the current node (dog): 'the quick brown jumps over the lazy old fox (dog) + 'Test 12: Remove current node (dog) and attempt to indicate it: 'Node 'dog' is not in the list. + 'Test 13: Add node removed in test 11 after a referenced node (brown): 'the quick brown (dog) jumps over the lazy old fox + 'Test 14: Remove node that has the value 'old': 'the quick brown dog jumps over the lazy fox + 'Test 15: Remove last node, cast to ICollection, and add 'rhinoceros': -'the quick brown dog jumps over the lazy rhinoceros +'the quick brown dog jumps over the lazy rhinoceros + 'Test 16: Copy the list to an array: 'the 'quick @@ -198,7 +213,7 @@ End Class 'the 'lazy 'rhinoceros + 'Test 17: Clear linked list. Contains 'jumps' = False ' -' - +' \ No newline at end of file