diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-06-30 20:44:46 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-06-30 20:44:46 +0100 |
| commit | f55983f8a5fefe039df83fc601679fc32e04581e (patch) | |
| tree | a1e584da4d52c2b499b04de917ad38a6de998f25 /examples/01-struct/output/rust/src | |
| parent | 3918b4715e8d060eacbd1e53e53df21afba5a358 (diff) | |
Write doc comment for Rust structs
Diffstat (limited to 'examples/01-struct/output/rust/src')
| -rw-r--r-- | examples/01-struct/output/rust/src/point.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/01-struct/output/rust/src/point.rs b/examples/01-struct/output/rust/src/point.rs index aa90e19..063c3f0 100644 --- a/examples/01-struct/output/rust/src/point.rs +++ b/examples/01-struct/output/rust/src/point.rs @@ -1,8 +1,10 @@ +/// A straight line from one point to another. pub struct Line { pub start: Point, pub end: Point, } +/// A 2D point. pub struct Point { pub x: i32, pub y: i32, |
