Skip to content

Commit

Permalink
tweak: Adjust name of repr in docstring (#4714)
Browse files Browse the repository at this point in the history
  • Loading branch information
max-sixty authored Jul 10, 2024
1 parent 8eff9c9 commit a1ba7ce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion prqlc/prqlc-parser/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ pub fn parse_lr_to_pr(
// We don't want comments in the AST (but we do intend to use them as part of
// formatting)
let stream = prepare_stream(lr.into_iter(), source, source_id);
let (pr, parse_errors) = ::chumsky::Parser::parse_recovery(&stmt::source(), stream);
let (pr, parse_errors) = stmt::source().parse_recovery(stream);

let errors = parse_errors.into_iter().map(|e| e.into()).collect();
log::debug!("parse errors: {errors:?}");
Expand Down
2 changes: 1 addition & 1 deletion prqlc/prqlc/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ pub fn parse(file_tree: &SourceTree) -> Result<pr::ModuleDef, Errors> {
}
}

/// Build PRQL AST from a PRQL query string.
/// Build PR AST from a PRQL query string.
pub(crate) fn parse_source(source: &str, source_id: u16) -> Result<Vec<pr::Stmt>, Vec<Error>> {
let (tokens, mut errors) = prqlc_parser::lexer::lex_source_recovery(source, source_id);

Expand Down

0 comments on commit a1ba7ce

Please sign in to comment.