From 8e8e8ced6014ae131290a7eb74631cfa58c80c4f Mon Sep 17 00:00:00 2001 From: Adrien Leravat Date: Tue, 4 Oct 2022 08:57:10 -0700 Subject: [PATCH] docs: fix code sample typo (#2254) Fix small typo in classes documentation Added to a decicated PR to keep things orderly --- docs/design/classes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);