diff --git a/docs/csharp/reference-semantics-with-value-types.md b/docs/csharp/reference-semantics-with-value-types.md index ec69f4e5f1779..312764d0b36c0 100644 --- a/docs/csharp/reference-semantics-with-value-types.md +++ b/docs/csharp/reference-semantics-with-value-types.md @@ -214,7 +214,7 @@ readonly ref struct ReadOnlyRefPoint2D public int X { get; } public int Y { get; } - ReadOnlyRefPoint2D(int x, int y) => (X, Y) = (x, y); + public ReadOnlyRefPoint2D(int x, int y) => (X, Y) = (x, y); } ```