From 3b9ca8535fda8d6dc1677d3bd063b7d9ddf160e5 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 5 Jul 2021 16:26:11 +0100 Subject: [PATCH] Fix comments --- examples/demo/demo.odin | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/demo/demo.odin b/examples/demo/demo.odin index eaa8454b3..123f56fce 100644 --- a/examples/demo/demo.odin +++ b/examples/demo/demo.odin @@ -2003,7 +2003,7 @@ or_else_procedure :: proc() { fmt.println("\n#'or_else'"); // IMPORTANT NOTE: 'or_else' is experimental features and subject to change/removal { - // 'try else' does a similar value check as 'try' but instead of doing an + // 'or_else' does a similar value check as 'try' but instead of doing an // early return, it will give a default value to be used instead m: map[string]int; @@ -2013,13 +2013,13 @@ or_else_procedure :: proc() { if i, ok = m["hellope"]; !ok { i = 123; } - // The above can be mapped to 'try else' + // The above can be mapped to 'or_else' i = or_else(m["hellope"], 123); assert(i == 123); } { - // 'try else' can be used with type assertions too, as they + // 'or_else' can be used with type assertions too, as they // have optional ok semantics v: union{int, f64}; i: int;