Skip to content

Commit

Permalink
fix: update doc example to fit new ID types
Browse files Browse the repository at this point in the history
  • Loading branch information
imrn99 committed Feb 9, 2024
1 parent 971cf6a commit c749d2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion honeycomb-core/src/cmap/dart.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ pub type DartIdentifier = u32;
/// let mut darts = vec![Dart::NULL];
/// darts.extend((1..11).map(|i| Dart::from(i)));
///
/// (0..11).for_each(|i| assert_eq!(i, darts[i].id()));
/// (0..11).for_each(|i| assert_eq!(i, darts[i].id() as usize));
/// ```
///
pub struct Dart {
Expand Down
2 changes: 1 addition & 1 deletion honeycomb-core/src/cmap/embed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ pub type VolumeIdentifier = usize;
/// let darts = vec![Dart::NULL, Dart::from(1)];
/// let embedded_cells = vec![DartCells::NULL; 2];
///
/// println!("dart {} associated cells: {:#?}", darts[1].id(), embedded_cells[darts[1].id()]);
/// println!("dart {} associated cells: {:#?}", darts[1].id(), embedded_cells[darts[1].id() as usize]);
/// ```
///
pub struct DartCells {
Expand Down

0 comments on commit c749d2c

Please sign in to comment.