Skip to content

Commit 72fd82d

Browse files
committed
Reword documentation comments to be more generalized for all dialects
1 parent 360e1d7 commit 72fd82d

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))]
@@ -9273,17 +9280,10 @@ impl fmt::Display for PrintStatement {
92739280
}
92749281
}
92759282

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

0 commit comments

Comments
 (0)