We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f07b8d commit ca60e4cCopy full SHA for ca60e4c
[refs]
@@ -1,2 +1,2 @@
1
---
2
-refs/heads/master: 388eed383f05dbc322d5808faf7d52091d0c0fca
+refs/heads/master: f4eb25e0d032495fef50c445b211f2c2ff20eb9c
trunk/doc/tutorial/ffi.md
@@ -183,7 +183,7 @@ microsecond-resolution timer.
183
fn gettimeofday(tv: *timeval, tz: *()) -> i32;
184
}
185
fn unix_time_in_microseconds() -> u64 unsafe {
186
- let x = {tv_sec: 0u32, tv_usec: 0u32};
+ let x = {mutable tv_sec: 0u32, mutable tv_usec: 0u32};
187
libc::gettimeofday(std::ptr::addr_of(x), std::ptr::null());
188
ret (x.tv_sec as u64) * 1000_000_u64 + (x.tv_usec as u64);
189
0 commit comments