aboutsummaryrefslogtreecommitdiff
path: root/core/strings
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-08-15 11:08:28 +0100
committergingerBill <bill@gingerbill.org>2021-08-15 11:08:28 +0100
commitd70fa4329cd2642d27ab2b507399dc571f95a8b3 (patch)
treeb793e8099984498509bafae7b081c78cece5a1eb /core/strings
parent0e84e067562c490387cd221eccf3e26e14d09df5 (diff)
Move `#no_bounds_check` to before `return`
Diffstat (limited to 'core/strings')
-rw-r--r--core/strings/intern.odin2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/strings/intern.odin b/core/strings/intern.odin
index def03d899..0e4951f87 100644
--- a/core/strings/intern.odin
+++ b/core/strings/intern.odin
@@ -26,7 +26,7 @@ intern_destroy :: proc(m: ^Intern) {
intern_get :: proc(m: ^Intern, text: string) -> string {
entry := _intern_get_entry(m, text);
- return #no_bounds_check string(entry.str[:entry.len]);
+ #no_bounds_check return string(entry.str[:entry.len]);
}
intern_get_cstring :: proc(m: ^Intern, text: string) -> cstring {
entry := _intern_get_entry(m, text);