Fix minor nit in documentation

Change-Id: I0a75ecce970754b036f2af0a065aa392547dae7b
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/106322
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
Commit-Queue: Brian Wilkerson <brianwilkerson@google.com>
diff --git a/pkg/analyzer/lib/src/error/codes.dart b/pkg/analyzer/lib/src/error/codes.dart
index 2e762de..278a7f7 100644
--- a/pkg/analyzer/lib/src/error/codes.dart
+++ b/pkg/analyzer/lib/src/error/codes.dart
@@ -175,7 +175,7 @@
   // #### Common fixes
   //
   // There are two common ways to fix this problem. The first is to remove all
-  // of the spread elements of one kind or other, so that the elements are
+  // of the spread elements of one kind or another, so that the elements are
   // consistent. In this case, that likely means removing the list and deciding
   // what to do about the now unused parameter:
   //
diff --git a/pkg/analyzer/tool/diagnostics/diagnostics.md b/pkg/analyzer/tool/diagnostics/diagnostics.md
index f8e7511..7bcca54 100644
--- a/pkg/analyzer/tool/diagnostics/diagnostics.md
+++ b/pkg/analyzer/tool/diagnostics/diagnostics.md
@@ -53,7 +53,7 @@
 #### Common fixes
 
 There are two common ways to fix this problem. The first is to remove all
-of the spread elements of one kind or other, so that the elements are
+of the spread elements of one kind or another, so that the elements are
 consistent. In this case, that likely means removing the list and deciding
 what to do about the now unused parameter: