Skip to content

Commit 9b4ef0d

Browse files
committed
update example
1 parent 444dc32 commit 9b4ef0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/csharp/misc/cs0131.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ The left-hand side of an assignment must be a variable, property or indexer
2424
// CS0131.cs
2525
public class MyClass
2626
{
27-
public int i = 0;
27+
public const int i = 0;
2828
public void MyMethod()
2929
{
3030
i++ = 1; // CS0131

0 commit comments

Comments
 (0)