Skip to content

Commit 14e1182

Browse files
Resolved cargo doc
1 parent 4f3d908 commit 14e1182

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

src/ast/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -932,7 +932,7 @@ pub enum Expr {
932932
/// `true` when `NOT` is present.
933933
negated: bool,
934934
/// Snowflake supports the ANY keyword to match against a list of patterns
935-
/// https://docs.snowflake.com/en/sql-reference/functions/like_any
935+
/// <https://docs.snowflake.com/en/sql-reference/functions/like_any>
936936
any: bool,
937937
/// Expression to match.
938938
expr: Box<Expr>,
@@ -946,7 +946,7 @@ pub enum Expr {
946946
/// `true` when `NOT` is present.
947947
negated: bool,
948948
/// Snowflake supports the ANY keyword to match against a list of patterns
949-
/// https://docs.snowflake.com/en/sql-reference/functions/like_any
949+
/// <https://docs.snowflake.com/en/sql-reference/functions/like_any>
950950
any: bool,
951951
/// Expression to match.
952952
expr: Box<Expr>,
@@ -986,7 +986,7 @@ pub enum Expr {
986986
compare_op: BinaryOperator,
987987
/// Right-hand subquery expression.
988988
right: Box<Expr>,
989-
/// ANY and SOME are synonymous: https://docs.cloudera.com/cdw-runtime/cloud/using-hiveql/topics/hive_comparison_predicates.html
989+
/// ANY and SOME are synonymous: <https://docs.cloudera.com/cdw-runtime/cloud/using-hiveql/topics/hive_comparison_predicates.html>
990990
is_some: bool,
991991
},
992992
/// `ALL` operation e.g. `foo > ALL(bar)`, comparison operator is one of `[=, >, <, =>, =<, !=]`
@@ -6457,7 +6457,7 @@ pub enum MinMaxValue {
64576457
Empty,
64586458
/// NO MINVALUE / NO MAXVALUE.
64596459
None,
6460-
/// MINVALUE <expr> / MAXVALUE <expr>.
6460+
/// MINVALUE `<expr>` / MAXVALUE `<expr>`.
64616461
Some(Expr),
64626462
}
64636463

@@ -9154,7 +9154,7 @@ pub enum CopyLegacyOption {
91549154
Delimiter(char),
91559155
/// EMPTYASNULL
91569156
EmptyAsNull,
9157-
/// ENCRYPTED [ AUTO ]
9157+
/// ENCRYPTED \[ AUTO \]
91589158
Encrypted {
91599159
/// Whether `AUTO` was specified for encryption.
91609160
auto: bool,
@@ -9175,16 +9175,16 @@ pub enum CopyLegacyOption {
91759175
IgnoreHeader(u64),
91769176
/// JSON
91779177
Json,
9178-
/// MANIFEST [ VERBOSE ]
9178+
/// `MANIFEST \[ VERBOSE \]`
91799179
Manifest {
91809180
/// Whether the MANIFEST is verbose.
91819181
verbose: bool,
91829182
},
9183-
/// MAXFILESIZE \[ AS \] max-size \[ MB | GB \]
9183+
/// `MAXFILESIZE \[ AS \] max-size \[ MB | GB \]`
91849184
MaxFileSize(FileSize),
9185-
/// NULL \[ AS \] 'null_string'
9185+
/// `NULL \[ AS \] 'null_string'`
91869186
Null(String),
9187-
/// PARALLEL [ { ON | TRUE } | { OFF | FALSE } ]
9187+
/// `PARALLEL [ { ON | TRUE } | { OFF | FALSE } ]`
91889188
Parallel(Option<bool>),
91899189
/// PARQUET
91909190
Parquet,
@@ -11120,7 +11120,7 @@ pub struct AlterUser {
1112011120
/// The name of the user to alter.
1112111121
pub name: Ident,
1112211122
/// Optional new name for the user (Snowflake-specific).
11123-
/// See: https://docs.snowflake.com/en/sql-reference/sql/alter-user#syntax
11123+
/// See: <https://docs.snowflake.com/en/sql-reference/sql/alter-user#syntax>
1112411124
pub rename_to: Option<Ident>,
1112511125
/// Reset the user's password.
1112611126
pub reset_password: bool,

src/parser/mod.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2925,7 +2925,7 @@ impl<'a> Parser<'a> {
29252925

29262926
/// Parse a `NOT` expression.
29272927
///
2928-
/// See [`Expr::Not`]
2928+
/// Represented in the AST as `Expr::UnaryOp` with `UnaryOperator::Not`.
29292929
pub fn parse_not(&mut self) -> Result<Expr, ParserError> {
29302930
match self.peek_token().token {
29312931
Token::Word(w) => match w.keyword {
@@ -16678,7 +16678,7 @@ impl<'a> Parser<'a> {
1667816678
}
1667916679
}
1668016680

16681-
/// Parses input format clause used for [ClickHouse].
16681+
/// Parses input format clause used for ClickHouse.
1668216682
///
1668316683
/// <https://clickhouse.com/docs/en/interfaces/formats>
1668416684
pub fn parse_input_format_clause(&mut self) -> Result<InputFormatClause, ParserError> {
@@ -17723,7 +17723,7 @@ impl<'a> Parser<'a> {
1772317723
Ok(Statement::Rollback { chain, savepoint })
1772417724
}
1772517725

17726-
/// Parse an optional 'AND [NO] CHAIN' clause for `COMMIT` and `ROLLBACK` statements
17726+
/// Parse an optional `AND [NO] CHAIN` clause for `COMMIT` and `ROLLBACK` statements
1772717727
pub fn parse_commit_rollback_chain(&mut self) -> Result<bool, ParserError> {
1772817728
let _ = self.parse_one_of_keywords(&[Keyword::TRANSACTION, Keyword::WORK]);
1772917729
if self.parse_keyword(Keyword::AND) {

0 commit comments

Comments
 (0)