Skip to content

Commit 39fe82a

Browse files
committed
Reword documentation comments to be more generalized for all dialects
1 parent 86ace5d commit 39fe82a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

Diff for: src/ast/mod.rs

+11-11
Original file line numberDiff line numberDiff line change
@@ -2318,7 +2318,14 @@ impl fmt::Display for ConditionalStatements {
23182318
}
23192319
}
23202320

2321-
/// A shared representation of `BEGIN`, multiple statements, and `END` tokens.
2321+
/// Represents a list of statements enclosed within `BEGIN` and `END` keywords.
2322+
/// Example:
2323+
/// ```sql
2324+
/// BEGIN
2325+
/// SELECT 1;
2326+
/// SELECT 2;
2327+
/// END
2328+
/// ```
23222329
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
23232330
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
23242331
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]
@@ -9253,17 +9260,10 @@ pub enum CopyIntoSnowflakeKind {
92539260
Location,
92549261
}
92559262

9256-
/// Return (MsSql)
9257-
///
9258-
/// for Functions:
9259-
/// RETURN scalar_expression
9260-
///
9261-
/// See <https://learn.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql>
9262-
///
9263-
/// for Triggers:
9264-
/// RETURN
9263+
/// Represents a `Return` statement.
92659264
///
9266-
/// See <https://learn.microsoft.com/en-us/sql/t-sql/statements/create-trigger-transact-sql>
9265+
/// [MsSql triggers](https://learn.microsoft.com/en-us/sql/t-sql/statements/create-trigger-transact-sql)
9266+
/// [MsSql functions](https://learn.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql)
92679267
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
92689268
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
92699269
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]

0 commit comments

Comments
 (0)