diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-01-26 08:39:45 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2012-01-28 09:18:34 -0800 |
| commit | 259636a112804b94530c409a468b97d4366bb0d3 (patch) | |
| tree | 572db0f59b254355db6ea83caaf6181e25856009 /src/libstd | |
| parent | a831e7ce13aa19acf0f65e508097351f8dabca84 (diff) | |
| download | rust-259636a112804b94530c409a468b97d4366bb0d3.tar.gz rust-259636a112804b94530c409a468b97d4366bb0d3.zip | |
core: rename vec::position* functions
Almost all of the vec functions that predicates don't have a corresponding function that takes a single element, so this commit renames the common fn usecase to be the default.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/getopts.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/getopts.rs b/src/libstd/getopts.rs index b870dde34c6..c517a2f996d 100644 --- a/src/libstd/getopts.rs +++ b/src/libstd/getopts.rs @@ -149,7 +149,7 @@ fn name_str(nm: name) -> str { } fn find_opt(opts: [opt], nm: name) -> option::t<uint> { - vec::position_pred(opts, { |opt| opt.name == nm }) + vec::position(opts, { |opt| opt.name == nm }) } /* |
