Skip to content

Commit 4f9fb2f

Browse files
CopilotBillWagner
andcommitted
Fix wording to use 'method' instead of 'constructor' for generality
Co-authored-by: BillWagner <[email protected]>
1 parent d043fb8 commit 4f9fb2f

File tree

1 file changed

+1
-1
lines changed
  • docs/csharp/language-reference/compiler-messages

1 file changed

+1
-1
lines changed

docs/csharp/language-reference/compiler-messages/cs0051.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Inconsistent accessibility: parameter type 'type' is less accessible than method
1414

1515
This error occurs when you declare a method (including constructors) with a parameter type that is less accessible than the method itself. For example, you might have a public constructor that uses an internal or private class as a parameter type.
1616

17-
The most common scenario is when you're defining a public constructor but one of its parameter types is internal or private. This creates an inconsistency because external code can see the constructor but can't access the types needed to call it.
17+
The most common scenario is when you're defining a public method but one of its parameter types is internal or private. This creates an inconsistency because external code can see the method but can't access the types needed to call it.
1818

1919
## How to troubleshoot this error
2020

0 commit comments

Comments
 (0)