From 20e73ff69a11bfac8a1afb265944a9b9b836579c Mon Sep 17 00:00:00 2001 From: Abdullah Atta Date: Wed, 18 Dec 2019 10:22:52 +0500 Subject: [PATCH] os: fix nreadelements naming --- vlib/os/os.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vlib/os/os.v b/vlib/os/os.v index 4846cacc5e..bfdbd301ea 100644 --- a/vlib/os/os.v +++ b/vlib/os/os.v @@ -98,9 +98,9 @@ pub fn read_bytes(path string) ?[]byte { C.rewind(fp) mut res := [`0`].repeat(fsize) - nreadelements := C.fread(res.data, fsize, 1, fp) + nr_read_elements := C.fread(res.data, fsize, 1, fp) C.fclose(fp) - return res[0..nreadelements * fsize] + return res[0..nr_read_elements * fsize] } // read_file reads the file in `path` and returns the contents.