diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-01-10 09:55:30 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-01-10 09:55:30 +0100 |
commit | 312026a5989cb3fe71947990279a1af577f6c85a (patch) | |
tree | ab6c11a4da9592ad768f311295aee6c2033c2392 | |
parent | 61d6fa31b3a76fd0f34dcc553394cd237d962d28 (diff) |
Result.pm: Fix code example in SYNOPSIS
-rw-r--r-- | lib/Travel/Status/DE/IRIS/Result.pm | 21 |
1 files changed, 5 insertions, 16 deletions
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, ); } |