diff --git a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs
index 2a93fe02af..38924f3e39 100644
--- a/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs
+++ b/src/Microsoft.PowerShell.ConsoleHost/host/msh/Executor.cs
@@ -13,11 +13,11 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace Microsoft.PowerShell
{
///
- /// Executor wraps a Pipeline instance, and provides helper methods for executing commands in that pipeline. It is used to
+ /// Executor wraps a Pipeline instance, and provides helper methods for executing commands in that pipeline. It is used to
/// provide bookkeeping and structure to the use of pipeline in such a way that they can be interrupted and cancelled by a
- /// break event handler, and track nesting of pipelines (which happens with interrupted input loops (aka subshells) and use
- /// of tab-completion in prompts. The bookkeeping is necessary because the break handler is static and global, and there is
- /// no means for tying a break handler to an instance of an object.
+ /// break event handler, and to track nesting of pipelines (which happens with interrupted input loops (aka subshells) and
+ /// use of tab-completion in prompts). The bookkeeping is necessary because the break handler is static and global, and
+ /// there is no means for tying a break handler to an instance of an object.
///
/// The class' instance methods manage a single pipeline. The class' static methods track the outstanding instances to
/// ensure that only one instance is 'active' (and therefore cancellable) at a time.
@@ -44,8 +44,8 @@ namespace Microsoft.PowerShell
///
///
/// True if the instance will be used to execute the prompt function, which will delay stopping the pipeline by some
- /// milliseconds. This we prevent us from stopping the pipeline so quickly that when the user leans on the ctrl-c key
- /// that the prompt "stops working" (because it is being stopped faster than it can run to completion).
+ /// milliseconds. This will prevent us from stopping the pipeline so quickly that, when the user leans on the ctrl-c
+ /// key, the prompt "stops working" (because it is being stopped faster than it can run to completion).
///
internal Executor(ConsoleHost parent, bool useNestedPipelines, bool isPromptFunctionExecutor)
{
@@ -67,7 +67,7 @@ namespace Microsoft.PowerShell
PipelineReader reader = (PipelineReader)sender;
- // we use NonBlockingRead instead of Read, as Read would block if the reader has no objects. While it would be
+ // We use NonBlockingRead instead of Read, as Read would block if the reader has no objects. While it would be
// inconsistent for this method to be called when there are no objects, since it will be called synchronously on
// the pipeline thread, blocking in this call until an object is streamed would deadlock the pipeline. So we
// prefer to take no chance of blocking.
@@ -80,7 +80,6 @@ namespace Microsoft.PowerShell
}
// called on the pipeline thread
-
private void ErrorObjectStreamHandler(object sender, EventArgs e)
{
// e is just an empty instance of EventArgs, so we ignore it. sender is the PipelineReader that raised it's
@@ -88,7 +87,7 @@ namespace Microsoft.PowerShell
PipelineReader
///
- /// The instance to make current. Null is allowed.
+ /// The instance to make current. Null is allowed.
///
///
/// Here are some state-transition cases to illustrate the use of CurrentExecutor
@@ -679,8 +678,8 @@ namespace Microsoft.PowerShell
}
///
- /// Cancels the execution of the current instance (the instance last passed to PushCurrentExecutor), if any. If no
- /// instance is Current, then does nothing.
+ /// Cancels the execution of the current instance (the instance last passed to PushCurrentExecutor), if any. Does
+ /// nothing if no instance is Current.
///
internal static void CancelCurrentExecutor()
{