diff --git a/doc/tutorials/content/how_features_work.rst b/doc/tutorials/content/how_features_work.rst index 1f89c1640be..1c7b1b60122 100644 --- a/doc/tutorials/content/how_features_work.rst +++ b/doc/tutorials/content/how_features_work.rst @@ -161,7 +161,7 @@ The following code snippet will estimate a set of surface normals for a subset o // Create a set of indices to be used. For simplicity, we're going to be using the first 10% of the points in cloud std::vector indices (floor (cloud->points.size () / 10)); - for (size_t i = 0; indices.size (); ++i) indices[i] = i; + for (size_t i = 0; i < indices.size (); ++i) indices[i] = i; // Create the normal estimation class, and pass the input dataset to it pcl::NormalEstimation ne;