diff --git a/examples/cmap-example/cmap-example.cpp b/examples/cmap-example/cmap-example.cpp index 1c39bd2bd..d06699c86 100644 --- a/examples/cmap-example/cmap-example.cpp +++ b/examples/cmap-example/cmap-example.cpp @@ -1,4 +1,4 @@ -// example of a C/C++ equivalent data structure to the python dict +// example of a C/C++ equivalent data structure to the python dict in readcommonh.py #include #include @@ -101,7 +101,7 @@ std::map> extract_parameters() { } // Terminate the harvest; TODO: not robust; need better terminator; this just a crude hack for now - if (nws_elements.size() > 2 && nws_elements[1] == "infill") { + if (nws_elements.size() > 2 && nws_elements[2] == "infill") { inside = false; break; }