From bc81ddfea67db0b3756027e98cc00bb8fa903a20 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Tue, 26 Jul 2016 20:40:11 -0700 Subject: unsigned integers for sizes of things Closes #62. --- doc/langref.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/langref.md b/doc/langref.md index 805de170b5..4117f4f7d0 100644 --- a/doc/langref.md +++ b/doc/langref.md @@ -386,7 +386,7 @@ Function Operation @shl_with_overflow(inline T: type, a: T, b: T, result: &T) -> bool *x = a << b ``` -### @memset(dest, c: u8, byte_count: isize) +### @memset(dest, c: u8, byte_count: usize) This function sets a region of memory to `c`. `dest` is a pointer. @@ -398,7 +398,7 @@ level code will not use this function, instead using something like this: for (dest) |*b| *b = c; ``` -### @memcpy(dest, source, byte_count: isize) +### @memcpy(dest, source, byte_count: usize) This function copies bytes from one region of memory to another. `dest` and `source` are both pointers and must not overlap. -- cgit v1.2.3