From cc5e79c9ec9cea8d0f22020b528877d8f6e00153 Mon Sep 17 00:00:00 2001 From: Gilles Dubochet Date: Wed, 27 May 2009 19:35:02 +0000 Subject: In "Iterable" and in all its subclasses, "itera... In "Iterable" and in all its subclasses, "iterator" replaces "elements" (and assorted changes). --- docs/examples/xml/phonebook/phonebook3.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/examples/xml/phonebook/phonebook3.scala') diff --git a/docs/examples/xml/phonebook/phonebook3.scala b/docs/examples/xml/phonebook/phonebook3.scala index 51608beb28..0dfae351b5 100644 --- a/docs/examples/xml/phonebook/phonebook3.scala +++ b/docs/examples/xml/phonebook/phonebook3.scala @@ -25,7 +25,7 @@ object phonebook3 { case x @ { Text(Name) }{ ch1 @ _* } => var updated = false; - val ch2 = for(val c <- ch1) yield c match { // does it have the phone number? + val ch2 = for(c <- ch1) yield c match { // does it have the phone number? case y @ { _* } if y \ "@where" == Where => updated = true @@ -62,7 +62,7 @@ object phonebook3 { // decompose phonebook, apply updates phonebook match { case { ch @ _* } => - { copyOrChange( ch.elements ) } + { copyOrChange( ch.iterator ) } } } -- cgit v1.2.3