Skip to content

Commit

Permalink
Change method name
Browse files Browse the repository at this point in the history
Fixes #21167
  • Loading branch information
BillWagner committed Oct 21, 2020
1 parent a8bc0a6 commit ce71f9a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/csharp/misc/cs0206.md
Expand Up @@ -33,16 +33,16 @@ public class MyClass
}
}

public static void MyMeth(ref int i)
// public static void MyMeth(int i)
public static void MyMethod(ref int i)
// public static void MyMethod(int i)
{
}

public static void Main()
{
MyMeth(ref P); // CS0206
MyMethod(ref P); // CS0206
// try the following line instead
// MyMeth(P); // CS0206
// MyMethod(P); // CS0206
}
}
```

0 comments on commit ce71f9a

Please sign in to comment.