From 2b4513c891f7afc0ca26d9d106ce90925604531b Mon Sep 17 00:00:00 2001 From: "Michael H. Gimle" Date: Tue, 5 Sep 2023 08:49:57 +0200 Subject: [PATCH] Fix minor typo in comment :) --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 6bfda7f..edc50c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -25,7 +25,7 @@ const INITIAL_SCREEN_H: u32 = 600; // == // Helper functions to make interacting with OpenGL a little bit prettier. You *WILL* need these! // == // // Get the size of an arbitrary array of numbers measured in bytes -// Example usage: pointer_to_array(my_array) +// Example usage: byte_size_of_array(my_array) fn byte_size_of_array(val: &[T]) -> isize { std::mem::size_of_val(&val[..]) as isize }