Reduce number of range and slice operators #239

Replace .. and ... with : and ..
This commit is contained in:
gingerBill
2018-08-01 21:34:59 +01:00
parent a6fe656f21
commit 0718f14774
31 changed files with 204 additions and 219 deletions
+1 -1
View File
@@ -46,7 +46,7 @@ _libgl := win32.load_library_a("opengl32.dll");
get_gl_proc_address :: proc(name: string) -> rawptr {
if name[len(name)-1] == 0 {
name = name[..len(name)-1];
name = name[:len(name)-1];
}
// NOTE(bill): null terminated
assert(mem.ptr_offset(&name[0], cast(uintptr)len(name))^ == 0);