aboutsummaryrefslogtreecommitdiff
path: root/examples/game
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-16 16:06:19 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-16 16:06:19 -0400
commitde49bc5bb3198f450cb367085f9def0d89782258 (patch)
treea81354271bd3de567a7656807416cd5c69e4b08b /examples/game
parent821bde156c222c7384c67517d773dc14a03342e7 (diff)
Deprecate :or_else()/:or_fail()/:or_exit() in favor of the `or` operator
Diffstat (limited to 'examples/game')
-rw-r--r--examples/game/game.tm2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/game/game.tm b/examples/game/game.tm
index 8c5124d0..c7d843e3 100644
--- a/examples/game/game.tm
+++ b/examples/game/game.tm
@@ -9,7 +9,7 @@ func main(map=(./map.txt)):
extern InitWindow:func(w:Int32, h:Int32, title:CString)->Void
InitWindow(1600, 900, "raylib [core] example - 2d camera")
- map_contents := map:read():or_exit("Could not find the game map: $map")
+ map_contents := map:read() or exit("Could not find the game map: $map")
World.CURRENT:load_map(map_contents)