Skip to content

Commit

Permalink
fix par docs
Browse files Browse the repository at this point in the history
  • Loading branch information
stelzo committed May 13, 2024
1 parent 86e7707 commit 5d6bb84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -601,12 +601,12 @@ impl PointCloud2Msg {
/// use ros_pointcloud2::prelude::*;
///
/// let cloud_points: Vec<PointXYZI> = 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::<N, C>().unwrap().collect::<Vec<PointXYZ>>();
/// let cloud_points_out = msg_out.try_into_par_iter().unwrap().collect::<Vec<PointXYZ>>();
/// assert_eq!(2, cloud_points_out.len());
/// ```
#[cfg(feature = "rayon")]
Expand Down

0 comments on commit 5d6bb84

Please sign in to comment.