summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2026-05-10 15:23:52 +0100
committerMichael Williamson <mike@zwobble.org>2026-05-10 15:23:52 +0100
commit5648afd950141a582b4585be8a30b7b3f808e35a (patch)
treec61acb992d75e7b9e544837f11cc1b62af0a6c89 /examples
parent193a62fa52e360ee76cca3d0f6bdbe2f6a69602a (diff)
Parse doc comment for struct definitions
Diffstat (limited to 'examples')
-rw-r--r--examples/01-struct/src/point.hob2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/01-struct/src/point.hob b/examples/01-struct/src/point.hob
index abe989d..1f392af 100644
--- a/examples/01-struct/src/point.hob
+++ b/examples/01-struct/src/point.hob
@@ -1,8 +1,10 @@
+/// A straight line from one point to another.
struct Line {
field start: Point;
field end: Point;
}
+/// A 2D point.
struct Point {
field x: Int32;
field y: Int32;