Skip to content

Commit 4d89fed

Browse files
committed
Reword documentation comments to be more generalized for all dialects
1 parent 7c6c5d5 commit 4d89fed

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

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))]
@@ -9271,17 +9278,10 @@ impl fmt::Display for PrintStatement {
92719278
}
92729279
}
92739280

9274-
/// Return (MsSql)
9275-
///
9276-
/// for Functions:
9277-
/// RETURN scalar_expression
9278-
///
9279-
/// See <https://learn.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql>
9280-
///
9281-
/// for Triggers:
9282-
/// RETURN
9281+
/// Represents a `Return` statement.
92839282
///
9284-
/// See <https://learn.microsoft.com/en-us/sql/t-sql/statements/create-trigger-transact-sql>
9283+
/// [MsSql triggers](https://learn.microsoft.com/en-us/sql/t-sql/statements/create-trigger-transact-sql)
9284+
/// [MsSql functions](https://learn.microsoft.com/en-us/sql/t-sql/statements/create-function-transact-sql)
92859285
#[derive(Debug, Clone, PartialEq, PartialOrd, Eq, Ord, Hash)]
92869286
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
92879287
#[cfg_attr(feature = "visitor", derive(Visit, VisitMut))]

0 commit comments

Comments
 (0)