Skip to content

Commit 6f80c56

Browse files
committed
C#: Fix typos is comments.
1 parent d5ee93d commit 6f80c56

File tree

2 files changed

+2
-2
lines changed
  • csharp
    • extractor/Semmle.Extraction.CSharp/Entities/Types
    • ql/test/library-tests/standalone/brokentypes

2 files changed

+2
-2
lines changed

csharp/extractor/Semmle.Extraction.CSharp/Entities/Types/Type.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private bool IsBrokenType(ITypeSymbol symbol)
3939
}
4040

4141
// (1) public class { ... } is a broken type and doesn't have a name.
42-
// (2) public class var { ... } is a an allowed type, but it overrides the var keyword for all uses.
42+
// (2) public class var { ... } is an allowed type, but it overrides the `var` keyword for all uses.
4343
// It is probably a better heuristic to treat it as a broken type.
4444
return string.IsNullOrEmpty(symbol.Name) || symbol.Name == "var";
4545
}

csharp/ql/test/library-tests/standalone/brokentypes/BrokenTypes.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static void Main()
1818
string y1 = x1.Prop;
1919

2020
var x2 = new C(); // Has type `var` as this overrides the implicitly typed keyword `var`.
21-
var y2 = x2.Prop; // Unknown type as `x2` har type `var`.
21+
var y2 = x2.Prop; // Unknown type as `x2` has type `var`.
2222

2323
C2 x3 = new C2(); // Unknown type.
2424
var y3 = x3.Prop; // Unknown property of unknown type.

0 commit comments

Comments
 (0)