diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2016-07-26 20:40:11 -0700 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2016-07-26 20:40:11 -0700 |
| commit | bc81ddfea67db0b3756027e98cc00bb8fa903a20 (patch) | |
| tree | 4264ce327d4dd2b7822854b25b48b5657decc369 /doc/langref.md | |
| parent | 76f87cdd966f23106684bb38c127f6bd3f4e9fa3 (diff) | |
| download | zig-bc81ddfea67db0b3756027e98cc00bb8fa903a20.tar.gz zig-bc81ddfea67db0b3756027e98cc00bb8fa903a20.zip | |
unsigned integers for sizes of things
Closes #62.
Diffstat (limited to 'doc/langref.md')
| -rw-r--r-- | doc/langref.md | 4 |
1 files changed, 2 insertions, 2 deletions
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. |
