From 31e56d743cdca4d6ba0b3f6050351c2c5e3be7e9 Mon Sep 17 00:00:00 2001 From: Michael Williamson Date: Mon, 10 Aug 2026 15:38:11 +0100 Subject: Update LineDrawing in example to have list of lines --- examples/03-struct-generic/src/point.hob | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/03-struct-generic/src/point.hob b/examples/03-struct-generic/src/point.hob index f923785..ec6d76e 100644 --- a/examples/03-struct-generic/src/point.hob +++ b/examples/03-struct-generic/src/point.hob @@ -1,11 +1,11 @@ /// A 2D drawing made up of straight lines. struct LineDrawing2D { - field lines: Line[Point2D]; + field lines: List[Line[Point2D]]; } /// A drawing made up of straight lines. struct LineDrawing[TPoint] { - field lines: Line[TPoint]; + field lines: List[Line[TPoint]]; } /// A straight line from one point to another. -- cgit v1.2.3