From 3cb8e2bf7cc7b2da84d968a4ac0c03398ca38dc2 Mon Sep 17 00:00:00 2001 From: Ed Hennis Date: Thu, 9 Jul 2026 19:13:48 -0400 Subject: [PATCH] Review feedback from @mvadari: Clarify comments --- include/xrpl/tx/invariants/InvariantCheck.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/xrpl/tx/invariants/InvariantCheck.h b/include/xrpl/tx/invariants/InvariantCheck.h index eb0c05dfcb..486b305a4c 100644 --- a/include/xrpl/tx/invariants/InvariantCheck.h +++ b/include/xrpl/tx/invariants/InvariantCheck.h @@ -71,10 +71,10 @@ public: * @brief called for each ledger entry in the current transaction. * * @param isDelete true if the SLE is being deleted. - * @param before ledger entry before modification by the - * transaction. + * @param before ledger entry before modification by the transaction. `before` will be null if + * the entry is new. * @param after ledger entry after modification by the transaction. - * `after` IS NEVER NULL. `isDelete` is the only correct way to check for deletions. + * NOTE: `after` IS NEVER NULL. `isDelete` is the only correct way to check for deletions. * Check for null defensively, but do not make any logic decisions based on whether `after` is * set, because it will always be set. */