Skip to content

Commit

Permalink
Update docs for RCS1214
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed May 28, 2022
1 parent 70d955d commit 055f263
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions docs/analyzers/RCS1214.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ string s = "abc";
### Code with Diagnostic

```csharp
$"{x}"
$"{NonNullStringConstant}"
```

### Code with Fix

```csharp
x
NonNullStringConstant
```


Expand Down
4 changes: 2 additions & 2 deletions src/Analyzers/Analyzers.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4531,8 +4531,8 @@ x = "";]]></Before>
<After><![CDATA[string s = "abc";]]></After>
</Sample>
<Sample>
<Before><![CDATA[$"{x}"]]></Before>
<After><![CDATA[x]]></After>
<Before><![CDATA[$"{NonNullStringConstant}"]]></Before>
<After><![CDATA[NonNullStringConstant]]></After>
</Sample>
</Samples>
</Analyzer>
Expand Down

0 comments on commit 055f263

Please sign in to comment.