From 1c60348072b238d243d622936b5178c781c08a6d Mon Sep 17 00:00:00 2001 From: Mehrad Date: Wed, 18 Mar 2026 00:35:18 -0400 Subject: [PATCH] Update unary operation documentation to include '-x' --- src/expr.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/expr.rs b/src/expr.rs index 0f92701dca..043c023f81 100644 --- a/src/expr.rs +++ b/src/expr.rs @@ -233,7 +233,7 @@ ast_enum_of_structs! { /// A tuple expression: `(a, b, c, d)`. Tuple(ExprTuple), - /// A unary operation: `!x`, `*x`. + /// A unary operation: `!x`, `*x`, `-x`. Unary(ExprUnary), /// An unsafe block: `unsafe { ... }`. @@ -674,7 +674,7 @@ ast_struct! { } ast_struct! { - /// A unary operation: `!x`, `*x`. + /// A unary operation: `!x`, `*x`, `-x`. #[cfg_attr(docsrs, doc(cfg(any(feature = "full", feature = "derive"))))] pub struct ExprUnary { pub attrs: Vec,