From 259636a112804b94530c409a468b97d4366bb0d3 Mon Sep 17 00:00:00 2001 From: Erick Tryzelaar Date: Thu, 26 Jan 2012 08:39:45 -0800 Subject: 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. --- src/libstd/getopts.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libstd') 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 { - vec::position_pred(opts, { |opt| opt.name == nm }) + vec::position(opts, { |opt| opt.name == nm }) } /* -- cgit 1.4.1-3-g733a5