Skip to content

Commit ab3ee15

Browse files
committed
Fix typos
1 parent fd8be53 commit ab3ee15

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

2-Draft-Accepted/RFCNNNN-Support-Experimental-Features.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Plan to implement: Yes
1414
This RFC is about adding the Experimental Feature support in PowerShell through the PowerShell configuration.
1515

1616
The Experimental Feature support in PowerShell is to provide a mechanism for experimental features to coexist
17-
with exsiting stable features in PowerShell or PowerShell modules.
17+
with existing stable features in PowerShell or PowerShell modules.
1818
An experimental feature would not be enabled
1919
unless a user opt in by properly configuring the `powershell.config.json` file.
2020
Experimental features should not affect any stable features
@@ -38,15 +38,15 @@ without worrying about regressions, issues, or side effects caused by the new fe
3838
For example, PowerShell team plans to rewrite the `FileSystemProvider` in future
3939
to reduce the code complexity and improve the performance.
4040
During the development,
41-
the `FileSystemProvider vnext` can coexist with the existing one
41+
the `FileSystemProviderV2` can coexist with the existing one
4242
and be exposed to the user as an experimental feature,
4343
so that PowerShell team can get early feedback and issue reports.
4444
At the same time, users can continue to use the existing `FileSystemProvider`
45-
without being affected by the known or unknown issues introduced by the `FileSystemProvider vnext`.
45+
without being affected by the known or unknown issues introduced by the `FileSystemProviderV2`.
4646

4747
## Specification
4848

49-
### Experimental Feateure Names
49+
### Experimental Feature Names
5050

5151
Experimental features for PowerShell components and built-in modules should be named as `PSXXX`,
5252
where `XXX` is the real feature name, which is a single word in camel case.
@@ -99,7 +99,7 @@ while the automatic variable makes it easy to query from PowerShell scripts.
9999
#### Code Path Divided
100100

101101
The first implementation scenario of an experimental feature is to divide the code path based on whether a feature is enabled.
102-
This probably would be the most common pattern for implementing any experimental fatures.
102+
This probably would be the most common pattern for implementing any experimental features.
103103
PowerShell exposes the enabled experimental feature names through both an API and an automatic variable,
104104
so it could be very easy for both C# code and PowerShell script to access this information.
105105

@@ -114,7 +114,7 @@ There are two cases in this scenario:
114114

115115
- A new cmdlet is added by the experimental feature.
116116
The new cmdlet should be exposed when the experimental feature is enabled.
117-
- A new cmdlet is added by the experimental feature to overide an existing cmdlet with the same name.
117+
- A new cmdlet is added by the experimental feature to override an existing cmdlet with the same name.
118118
When the experimental feature is enabled,
119119
the existing cmdlet should be hidden and the new cmdlet should be exposed.
120120

@@ -161,7 +161,7 @@ The following code snippets are examples of using this attribute for cmdlet/func
161161
```c#
162162
[Experimental("PSWebCmdletV2", FeatureAction.Show)]
163163
[Cmdlet(Verbs.Invoke, "WebRequest")]
164-
public class InvokeWebRequsetCommandV2 : WebCmdletBaseV2 { ... }
164+
public class InvokeWebRequestCommandV2 : WebCmdletBaseV2 { ... }
165165

166166
[Experimental("PSWebCmdletV2", FeatureAction.Hide)]
167167
[Cmdlet(Verbs.Invoke, "WebRequest")]
@@ -195,7 +195,7 @@ We want to expose this parameter only if the experimental feature is enabled.
195195

196196
An example for the second case:
197197
> We want to remove a problematic parameter from `Add-Type`.
198-
In order to evaluate the impact of the breaking chagne,
198+
In order to evaluate the impact of the breaking change,
199199
we want to hide it only if the experimental feature is enabled.
200200

201201
The same `[Experimental()]` attribute can also be used in this scenario.
@@ -245,7 +245,7 @@ There are two cases in this scenario:
245245
An example for the first case:
246246
> We want to support a new transport layer for `Invoke-Command`,
247247
which will introduce a new parameter set.
248-
Parameters `-ScirptBlock` and `-FilePath` need to be added to the new parameter set
248+
Parameters `-ScriptBlock` and `-FilePath` need to be added to the new parameter set
249249
when the experimental feature is enabled.
250250

251251
An example for the second case:
@@ -339,6 +339,7 @@ internal enum EngineExperimentalFeatures
339339
PSFileSystemProviderV2
340340
}
341341
```
342+
342343
```xml
343344
// EngineExperimentalFeature.resx
344345
<data name="PSFileSystemProviderV2-Description" xml:space="preserve">

0 commit comments

Comments
 (0)