aboutsummaryrefslogtreecommitdiff
path: root/core/strings
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2018-06-03 15:06:40 +0100
committergingerBill <bill@gingerbill.org>2018-06-03 15:06:40 +0100
commitd556fa2cd8570363a66a7d8a2a5abf5ba306e954 (patch)
treee7ceed61e3bdfba8515f5c4048066b5567b71a7a /core/strings
parent9bd7f023b204974264fc99ee268fd9e8a5df9570 (diff)
Remove special shared scope for runtime stuff
Diffstat (limited to 'core/strings')
-rw-r--r--core/strings/strings.odin4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/strings/strings.odin b/core/strings/strings.odin
index acbd3f054..89395e2bb 100644
--- a/core/strings/strings.odin
+++ b/core/strings/strings.odin
@@ -1,6 +1,6 @@
package strings
-import "core:raw"
+import "core:mem"
new_string :: proc(s: string) -> string {
c := make([]byte, len(s)+1);
@@ -22,7 +22,7 @@ to_odin_string :: proc(str: cstring) -> string {
}
string_from_ptr :: proc(ptr: ^byte, len: int) -> string {
- return transmute(string)raw.String{ptr, len};
+ return transmute(string)mem.Raw_String{ptr, len};
}
contains_rune :: proc(s: string, r: rune) -> int {