Skip to content

Commit

Permalink
Fixes Issue 20
Browse files Browse the repository at this point in the history
  • Loading branch information
pfankhauser committed Jul 20, 2015
1 parent 1c540d1 commit 65a06b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ Grid map | Submap | Circle | Line | Polygon

Using the iterator in a `for` loop is common. For example, iterate over the entire grid map with the `GridMapIterator` with

for (grid_map::GridMapIterator iterator(map); !iterator.isPassedEnd(); ++iterator) {
for (grid_map::GridMapIterator iterator(map); !iterator.isPastEnd(); ++iterator) {
cout << "The value at index " << *iterator << " is " << map.at("layer", *iterator) << endl;
}

Expand Down

0 comments on commit 65a06b1

Please sign in to comment.