diff --git a/cpp/cpptutorial.md b/cpp/cpptutorial.md index f6cd57bb68c..01eff071088 100644 --- a/cpp/cpptutorial.md +++ b/cpp/cpptutorial.md @@ -298,7 +298,7 @@ Now let's look at our streaming methods. If you've already read [Creating the se std::cout << "Found feature called " << feature.name() << " at " << feature.location().latitude()/kCoordFactor_ << ", " - << feature.location().latitude()/kCoordFactor_ << std::endl; + << feature.location().longitude()/kCoordFactor_ << std::endl; } Status status = reader->Finish(); ``` diff --git a/cpp/route_guide/route_guide_client.cc b/cpp/route_guide/route_guide_client.cc index cbf420780d6..0257affca07 100644 --- a/cpp/route_guide/route_guide_client.cc +++ b/cpp/route_guide/route_guide_client.cc @@ -120,7 +120,7 @@ class RouteGuideClient { std::cout << "Found feature called " << feature.name() << " at " << feature.location().latitude()/kCoordFactor_ << ", " - << feature.location().latitude()/kCoordFactor_ << std::endl; + << feature.location().longitude()/kCoordFactor_ << std::endl; } Status status = reader->Finish(); if (status.IsOk()) {