Skip to content

Commit 0b0fca3

Browse files
committed
Fix syntax error
1 parent d52a8f2 commit 0b0fca3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/standard/base-types/regular-expressions-in-depth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ private string _input1 = new string('a', 100_000);
358358
[Benchmark] public bool IgnoreCase2() => _r2.IsMatch(_input1);
359359
```
360360

361-
In theory, these two expressions should be identical, and functionally they are. But in the first case, with the set, in .NET 6 the compiled implementation will use code along the lines of `(c ==`'a'`) | (c ==`'a'`)` to match `'a'`, whereas with the `IgnoreCase` version, in .NET 6 the compiled implementation will use code along the lines of `_textInfo.ToLower(c) ==`'a'``, such that one possible resultset could look like this from the micro-benchmark:
361+
In theory, these two expressions should be identical, and functionally they are. But in the first case, with the set, in .NET 6 the compiled implementation will use code along the lines of `(c ==`'a'`) | (c ==`'a'`)` to match `'a'`, whereas with the `IgnoreCase` version, in .NET 6 the compiled implementation will use code along the lines of `_textInfo.ToLower(c) == 'a'`, such that one possible resultset could look like this from the micro-benchmark:
362362

363363
| Method | Runtime | Mean |
364364
|-------------|---------|----------:|

0 commit comments

Comments
 (0)