From 098a97f3f3d88757d71b617b495a6328d35733fd Mon Sep 17 00:00:00 2001 From: anonymousgituser <31715568+anonymousgituser@users.noreply.github.com> Date: Fri, 23 Mar 2018 03:06:07 -0400 Subject: [PATCH] Public ctor for Example in reference-semantics-with-value-types Last PR did not make the ctor accessibility level public for the readonly ref struct ReadOnlyRefPoint2D. --- docs/csharp/reference-semantics-with-value-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } ```