Skip to content

Commit 4770a87

Browse files
committed
fix(doctest): use ndarray::hpc:: not crate::hpc:: in stream doctests (codex P2)
Codex P2 flagged that doctest examples compile as an external test crate, so `crate::hpc::...` doesn't resolve — `cargo test --doc` would fail with "could not find hpc in the crate root". W-F5's InferenceStream got this right; W-F4 (QualiaStream) and W-F6 (SplatFieldStream) used `crate::hpc::...` and would have broken doctest CI. Two doctest import paths corrected to use the external crate name `ndarray::hpc::...` (matching the W-F5 pattern).
1 parent 7ce2c7a commit 4770a87

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/hpc/stream/qualia.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ pub struct QualiaI4Row(pub u64);
2626
/// # Example
2727
///
2828
/// ```
29-
/// use crate::hpc::stream::qualia::{QualiaI4Row, QualiaStream};
29+
/// use ndarray::hpc::stream::qualia::{QualiaI4Row, QualiaStream};
3030
///
3131
/// let rows = vec![QualiaI4Row(1), QualiaI4Row(2), QualiaI4Row(3)];
3232
/// let mut stream = QualiaStream::new(&rows);

src/hpc/stream/splat_field.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ pub struct SplatField {
3535
/// # Example
3636
///
3737
/// ```
38-
/// use crate::hpc::stream::splat_field::{SplatField, SplatFieldStream};
38+
/// use ndarray::hpc::stream::splat_field::{SplatField, SplatFieldStream};
3939
///
4040
/// let rows = vec![
4141
/// SplatField { mean: 0, variance: 1.0, energy: 0.5, generation: 1 },

0 commit comments

Comments
 (0)