Skip to content

Commit

Permalink
tweak: Add a couple docstrings (#4480)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty committed May 20, 2024
1 parent 9095495 commit fa87900
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions prqlc/prqlc/src/codegen/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,16 @@ impl WriteOpt {
}
}

/// Holds a list of (generally) expressions, attempting to write them in a
/// single line, or falling back to one-per-line
#[derive(Debug, Clone)]
struct SeparatedExprs<'a, T: WriteSource> {
exprs: &'a [T],
/// The separator to use when writing the expressions on a single line; for
/// example `", "`.
inline: &'static str,
/// The separator to use when writing the expressions on separate lines, for
/// example `","` (`/n` is implied)
line_end: &'static str,
}

Expand Down

0 comments on commit fa87900

Please sign in to comment.