Skip to content

Commit c94aa82

Browse files
committed
fix
Signed-off-by: Andrew Duffy <[email protected]>
1 parent bb0fa8c commit c94aa82

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

vortex-layout/src/layouts/path.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,14 @@ impl PathStrategy {
6161
/// ## Example
6262
///
6363
/// ```
64+
/// # use std::sync::Arc;
6465
/// # use vortex_layout::layouts::flat::writer::FlatLayoutStrategy;
6566
/// # use vortex_layout::layouts::path::PathStrategy;
67+
///
6668
/// // Build a write strategy that does not compress validity or any leaf fields.
67-
/// let strategy = PathStrategy::new(
68-
/// // strategy for validity buffer
69-
/// FlatLayoutStrategy::default(),
70-
/// // strategy for all leaf columns
71-
/// FlatLayoutStrategy::default(),
72-
/// );
69+
/// let flat = Arc::new(FlatLayoutStrategy::default());
70+
///
71+
/// let strategy = PathStrategy::new(flat.clone(), flat.clone());
7372
/// ```
7473
pub fn new(validity: Arc<dyn LayoutStrategy>, fallback: Arc<dyn LayoutStrategy>) -> Self {
7574
Self {

0 commit comments

Comments
 (0)