From 312026a5989cb3fe71947990279a1af577f6c85a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 10 Jan 2014 09:55:30 +0100 Subject: Result.pm: Fix code example in SYNOPSIS --- lib/Travel/Status/DE/IRIS/Result.pm | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) (limited to 'lib/Travel') diff --git a/lib/Travel/Status/DE/IRIS/Result.pm b/lib/Travel/Status/DE/IRIS/Result.pm index 667cfcd..3b8ab48 100644 --- a/lib/Travel/Status/DE/IRIS/Result.pm +++ b/lib/Travel/Status/DE/IRIS/Result.pm @@ -338,24 +338,13 @@ arrival/departure received by Travel::Status::DE::IRIS =head1 SYNOPSIS - for my $departure ($status->results) { + for my $result ($status->results) { printf( "At %s: %s to %s from platform %s\n", - $departure->time, - $departure->line, - $departure->destination, - $departure->platform, - ); - } - - # or (depending on module setup) - for my $arrival ($status->results) { - printf( - "At %s: %s from %s on platform %s\n", - $arrival->time, - $arrival->line, - $arrival->origin, - $arrival->platform, + $result->time, + $result->line, + $result->destination, + $result->platform, ); } -- cgit v1.2.3