diff options
| author | bors <bors@rust-lang.org> | 2013-05-15 07:38:07 -0700 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2013-05-15 07:38:07 -0700 |
| commit | 4e8261009948ed1cfbbdaf4ecc3fadef795b27b7 (patch) | |
| tree | 4eb235105de5e0b361a7a661ca347530f51e8283 /src/libcore/rt | |
| parent | 803c12d85fa898950d9efa9078b64519a1b78ab6 (diff) | |
| parent | a2a8596c3dd963e7b51f11998cffc46033bf6d63 (diff) | |
| download | rust-4e8261009948ed1cfbbdaf4ecc3fadef795b27b7.tar.gz rust-4e8261009948ed1cfbbdaf4ecc3fadef795b27b7.zip | |
auto merge of #6487 : recrack/rust/vec_len, r=thestinger
Rename vec::len(var) to var.len() ``` libcore, libfuzzer, librustc, librustdoc, libstd, libsyntax test/auxiliary test/bench test/run-pass ```
Diffstat (limited to 'src/libcore/rt')
| -rw-r--r-- | src/libcore/rt/uvll.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/rt/uvll.rs b/src/libcore/rt/uvll.rs index 4bff3bff7d3..0d298bde6b5 100644 --- a/src/libcore/rt/uvll.rs +++ b/src/libcore/rt/uvll.rs @@ -221,7 +221,7 @@ pub unsafe fn accept(server: *c_void, client: *c_void) -> c_int { pub unsafe fn write<T>(req: *uv_write_t, stream: *T, buf_in: &[uv_buf_t], cb: *u8) -> c_int { let buf_ptr = vec::raw::to_ptr(buf_in); - let buf_cnt = vec::len(buf_in) as i32; + let buf_cnt = buf_in.len() as i32; return rust_uv_write(req as *c_void, stream as *c_void, buf_ptr, buf_cnt, cb); } pub unsafe fn read_start(stream: *uv_stream_t, on_alloc: *u8, on_read: *u8) -> c_int { |
