docs: fix code sample typo (#2254)

Fix small typo in classes documentation
Added to a decicated PR to keep things orderly
This commit is contained in:
Adrien Leravat
2022-10-04 08:57:10 -07:00
committed by GitHub
parent 04d49cebd8
commit 8e8e8ced60
+1 -1
View File
@@ -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);