diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-10 15:38:11 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-10 17:24:24 +0100 |
| commit | 31e56d743cdca4d6ba0b3f6050351c2c5e3be7e9 (patch) | |
| tree | 43a3b6021ed781c9234faf3266c7e67678713eb8 /examples/03-struct-generic | |
| parent | 4da9b7d377e397b1076a5f19cf7e38e734fefbd3 (diff) | |
Update LineDrawing in example to have list of lines
Diffstat (limited to 'examples/03-struct-generic')
| -rw-r--r-- | examples/03-struct-generic/src/point.hob | 4 |
1 files 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. |
