update example to match

This commit is contained in:
zongor 2026-04-07 12:05:56 -07:00
parent c128b97ad5
commit b4512f2434
1 changed files with 9 additions and 11 deletions

View File

@ -8,9 +8,8 @@ plex Point {
}
toS() {
pln("[x:%d, y:%d]",
this.x,
this.y);
return "[x:" + (this.x as str) +
", y:" + (this.y as str) + "]";
}
}
@ -28,13 +27,12 @@ plex Rect {
}
toS() {
pln("[top_left: [x:%d, y:%d], bottom_right: [x:%d, y:%d], width:%d, height:%d]]",
this.top_left.x,
this.top_left.y,
this.bottom_right.x,
this.bottom_right.y,
this.width,
this.height);
return "[top_left:" +
this.top_left.toS() +
", bottom_right: " +
this.bottom_right.toS() +
", width:" + (this.width as str) +
", height:" + (this.height as str) + "]";
}
}