diff --git a/docs/design/classes.md b/docs/design/classes.md index 4ffa5fcc948c..5c1dc1eefb3e 100644 --- a/docs/design/classes.md +++ b/docs/design/classes.md @@ -963,7 +963,7 @@ class Point { var y: f32; } -fn Point.CreateXAxis(x: f32) -> Point; +fn Point.CreateXAxis(x: f32) -> Point { // ✅ Allowed: `Point` type is complete. // Members of `Point` like `Create` are in scope. return Create(x, 0);