From 6b414fc4c8e97415a0d210ff55ae6f5e00325480 Mon Sep 17 00:00:00 2001
From: syntax-tm <13120514+syntax-tm@users.noreply.github.com>
Date: Sun, 19 Feb 2023 01:00:52 -0500
Subject: [PATCH] Corrected some minor spelling mistakes
---
.../CimSessionProxy.cs | 2 +-
.../engine/DefaultCommandRuntime.cs | 2 +-
.../engine/parser/tokenizer.cs | 4 ++--
.../engine/remoting/common/remotingexceptions.cs | 12 ++++++------
.../engine/Basic/ValidateAttributes.Tests.ps1 | 2 +-
5 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs
index 64f5634f970..630bb34dfb1 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs
@@ -1493,7 +1493,7 @@ protected virtual void PostOperationDeleteEvent(OperationEventArgs args)
/// The CimSession object managed by this proxy object,
/// which is either created by constructor OR passed in by caller.
/// The session will be closed while disposing this proxy object
- /// if it is created by constuctor.
+ /// if it is created by constructor.
///
internal CimSession CimSession { get; private set; }
diff --git a/src/System.Management.Automation/engine/DefaultCommandRuntime.cs b/src/System.Management.Automation/engine/DefaultCommandRuntime.cs
index 88a2a2ee427..746d809d831 100644
--- a/src/System.Management.Automation/engine/DefaultCommandRuntime.cs
+++ b/src/System.Management.Automation/engine/DefaultCommandRuntime.cs
@@ -64,7 +64,7 @@ public void WriteObject(object sendToPipeline)
///
/// Default implementation of the enumerated WriteObject. Either way, the
- /// objects are added to the list passed to this object in the constuctor.
+ /// objects are added to the list passed to this object in the constructor.
///
/// Object to write.
/// If true, the collection is enumerated, otherwise
diff --git a/src/System.Management.Automation/engine/parser/tokenizer.cs b/src/System.Management.Automation/engine/parser/tokenizer.cs
index c0c150cdd42..8b19c7dc385 100644
--- a/src/System.Management.Automation/engine/parser/tokenizer.cs
+++ b/src/System.Management.Automation/engine/parser/tokenizer.cs
@@ -314,7 +314,7 @@ public DynamicKeyword Copy()
public bool HasReservedProperties { get; set; }
///
- /// A list of the properties allowed for this constuctor.
+ /// A list of the properties allowed for this constructor.
///
public Dictionary Properties
{
@@ -327,7 +327,7 @@ public Dictionary Properties
private Dictionary _properties;
///
- /// A list of the parameters allowed for this constuctor.
+ /// A list of the parameters allowed for this constructor.
///
public Dictionary Parameters
{
diff --git a/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs b/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs
index 9e92c045896..fbecd29a6f0 100644
--- a/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs
+++ b/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs
@@ -297,7 +297,7 @@ public PSRemotingDataStructureException()
}
///
- /// This constuctor takes a localized string as the error message.
+ /// This constructor takes a localized string as the error message.
///
///
/// A localized string as an error message.
@@ -309,7 +309,7 @@ public PSRemotingDataStructureException(string message)
}
///
- /// This constuctor takes a localized string as the error message, and an inner exception.
+ /// This constructor takes a localized string as the error message, and an inner exception.
///
///
/// A localized string as an error message.
@@ -339,7 +339,7 @@ internal PSRemotingDataStructureException(string resourceString, params object[]
}
///
- /// This constuctor takes an inner exception and an error id.
+ /// This constructor takes an inner exception and an error id.
///
///
/// Inner exception.
@@ -445,7 +445,7 @@ internal PSRemotingTransportException(PSRemotingErrorId errorId, string resource
}
///
- /// This constuctor takes an inner exception and an error id.
+ /// This constructor takes an inner exception and an error id.
///
///
/// Inner exception.
@@ -588,7 +588,7 @@ public PSRemotingTransportRedirectException(string message, Exception innerExcep
}
///
- /// This constuctor takes an inner exception and an error id.
+ /// This constructor takes an inner exception and an error id.
///
///
/// Inner exception.
@@ -685,7 +685,7 @@ public class PSDirectException : RuntimeException
#region Constructor
///
- /// This constuctor takes a localized string as the error message.
+ /// This constructor takes a localized string as the error message.
///
///
/// A localized string as an error message.
diff --git a/test/powershell/engine/Basic/ValidateAttributes.Tests.ps1 b/test/powershell/engine/Basic/ValidateAttributes.Tests.ps1
index 310465a03c2..c8d56786d51 100644
--- a/test/powershell/engine/Basic/ValidateAttributes.Tests.ps1
+++ b/test/powershell/engine/Basic/ValidateAttributes.Tests.ps1
@@ -52,7 +52,7 @@ Describe 'Validate Attributes Tests' -Tags 'CI' {
}
}
- Context "ValidateRange - ParameterConstuctors" {
+ Context "ValidateRange - ParameterConstructors" {
BeforeAll {
$testCases = @(
@{