mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:10:14 +01:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user