diff --git a/src/lib.rs b/src/lib.rs index 83edad9..99142a2 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -601,12 +601,12 @@ impl PointCloud2Msg { /// use ros_pointcloud2::prelude::*; /// /// let cloud_points: Vec = vec![ - /// PointXYZ::new(1.0, 2.0, 3.0, 0.5), - /// PointXYZ::new(4.0, 5.0, 6.0, 1.1), + /// PointXYZI::new(1.0, 2.0, 3.0, 0.5), + /// PointXYZI::new(4.0, 5.0, 6.0, 1.1), /// ]; /// /// let msg_out = PointCloud2Msg::try_from_iter(cloud_points).unwrap(); - /// let cloud_points_out = msg_out.try_into_par_iter::().unwrap().collect::>(); + /// let cloud_points_out = msg_out.try_into_par_iter().unwrap().collect::>(); /// assert_eq!(2, cloud_points_out.len()); /// ``` #[cfg(feature = "rayon")]