about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorErick Tryzelaar <erick.tryzelaar@gmail.com>2012-01-26 08:39:45 -0800
committerErick Tryzelaar <erick.tryzelaar@gmail.com>2012-01-28 09:18:34 -0800
commit259636a112804b94530c409a468b97d4366bb0d3 (patch)
tree572db0f59b254355db6ea83caaf6181e25856009 /src/libstd
parenta831e7ce13aa19acf0f65e508097351f8dabca84 (diff)
downloadrust-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.rs2
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 })
 }
 
 /*