Jeroen van Rijn 2 years ago
parent
commit
0bd27381c3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      core/builtin/builtin.odin

+ 1 - 1
core/builtin/builtin.odin

@@ -100,7 +100,7 @@ offset_of_selector :: proc(selector: $T) -> int ---
 offset_of_member   :: proc($T: typeid, member: $M) -> int ---
 offset_of :: proc{offset_of_selector, offset_of_member}
 // e.g. offset_of(T, "f"), where T can be the type instead of a variable
-offset_of_by_string :: proc($T: typeid, member: string) -> ---
+offset_of_by_string :: proc($T: typeid, member: string) -> int ---
 
 type_of      :: proc(x: expr) -> type ---
 type_info_of :: proc($T: typeid) -> ^runtime.Type_Info ---