Skip to content

Commit ec9e263

Browse files
committed
Fixed some typos
1 parent 0020309 commit ec9e263

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

StyleCop.Analyzers/StyleCop.Analyzers/ReadabilityRules/SA1135UsingDirectivesMustBeQualified.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private static void HandleUsingDeclaration(SyntaxNodeAnalysisContext context)
6363

6464
private static void CheckUsingDeclaration(SyntaxNodeAnalysisContext context, UsingDirectiveSyntax usingDirective)
6565
{
66-
// Usings outside of a namepsace are always qualified.
66+
// Usings outside of a namespace are always qualified.
6767
if (usingDirective.Parent is NamespaceDeclarationSyntax && usingDirective.StaticKeyword.IsKind(SyntaxKind.None))
6868
{
6969
string usingString = usingDirective.Name.ToString();

documentation/SA1135.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ A using directive is not qualified.
2626
For example, the following code would produce a violation of this rule:
2727

2828
```csharp
29-
namepsace System.Threading
29+
namespace System.Threading
3030
{
3131
using IO;
3232
using Tasks;
@@ -36,7 +36,7 @@ namepsace System.Threading
3636
The following code would not produce any violations:
3737

3838
```csharp
39-
namepsace System.Threading
39+
namespace System.Threading
4040
{
4141
using System.IO;
4242
using System.Threading.Tasks;
@@ -45,12 +45,12 @@ namepsace System.Threading
4545

4646
## How to fix violations
4747

48-
To fix a violation of this rule, use the full qualified namepsace name.
48+
To fix a violation of this rule, use the full qualified namespace name.
4949

5050
## How to suppress violations
5151

5252
```csharp
53-
namepsace N1.N2
53+
namespace N1.N2
5454
{
5555
#pragma warning disable SA1135 // Using directives must be qualified
5656
using N3;

0 commit comments

Comments
 (0)