diff options
| author | Brian Anderson <banderson@mozilla.com> | 2012-03-10 00:44:13 -0800 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2012-03-10 00:44:13 -0800 |
| commit | e4bb2d707f5202f259e10341814dc9f63d19a8d1 (patch) | |
| tree | 8d672f1a856e716842dc873b52559b843a0767ba /src/libcore | |
| parent | a0f0a704b0bd89eaae8cac0725ef9a2f29114a5b (diff) | |
| download | rust-e4bb2d707f5202f259e10341814dc9f63d19a8d1.tar.gz rust-e4bb2d707f5202f259e10341814dc9f63d19a8d1.zip | |
core: Rename vec::tail_n to vec::tailn to match other fns
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/vec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/vec.rs b/src/libcore/vec.rs index 50c16a217b1..2a7c583b61d 100644 --- a/src/libcore/vec.rs +++ b/src/libcore/vec.rs @@ -14,7 +14,7 @@ export to_mut; export from_mut; export head; export tail; -export tail_n; +export tailn; export init; export last; export last_opt; @@ -180,7 +180,7 @@ fn tail<T: copy>(v: [const T]) -> [T] { } #[doc = "Returns all but the first `n` elements of a vector"] -fn tail_n<T: copy>(v: [const T], n: uint) -> [T] { +fn tailn<T: copy>(v: [const T], n: uint) -> [T] { slice(v, n, len(v)) } |
