diff --git a/objc2_foundation/examples/basic_usage.rs b/objc2_foundation/examples/basic_usage.rs index 68963f36e..5d6617892 100644 --- a/objc2_foundation/examples/basic_usage.rs +++ b/objc2_foundation/examples/basic_usage.rs @@ -14,7 +14,7 @@ fn main() { // Create an NSArray from a Vec let objs = vec![obj, obj2]; let array = NSArray::from_vec(objs); - for obj in array.object_enumerator() { + for obj in array.iter() { println!("{:?}", obj); } println!("{}", array.len());