Fix minor typo in comment :)

This commit is contained in:
Michael H. Gimle
2023-09-05 08:49:57 +02:00
parent 0b528b3391
commit 2b4513c891
+1 -1
View File
@@ -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<T>(val: &[T]) -> isize {
std::mem::size_of_val(&val[..]) as isize
}