From 4b7ee80d4018b2a63a5016301ee6d34163ec6dfa Mon Sep 17 00:00:00 2001 From: hanachiru Date: Mon, 21 Sep 2026 21:09:43 +0900 Subject: [PATCH] fix: typo --- .../src/System/Transactions/InternalTransaction.cs | 2 +- .../src/System/Transactions/Oletx/OletxTransaction.cs | 6 +++--- .../System/Transactions/Oletx/OletxVolatileEnlistment.cs | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libraries/System.Transactions.Local/src/System/Transactions/InternalTransaction.cs b/src/libraries/System.Transactions.Local/src/System/Transactions/InternalTransaction.cs index 42e1d4c461ed52..7f7bf9ad90aa3a 100644 --- a/src/libraries/System.Transactions.Local/src/System/Transactions/InternalTransaction.cs +++ b/src/libraries/System.Transactions.Local/src/System/Transactions/InternalTransaction.cs @@ -132,7 +132,7 @@ internal OletxTransaction? PromotedTransaction } // If there was an exception that happened during promotion save that exception so that it - // can be used as an inner exception to the transaciton aborted exception. + // can be used as an inner exception to the transaction aborted exception. internal Exception? _innerException; // Note the number of Transaction objects supported by this object diff --git a/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransaction.cs b/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransaction.cs index d99c9ca5596c3f..efcac7960af27c 100644 --- a/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransaction.cs +++ b/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxTransaction.cs @@ -1014,7 +1014,7 @@ internal void Rollback() throw TransactionException.Create(SR.TransactionAlreadyOver, null, DistributedTxId); } - // If the transaciton is already aborted, we can get out now. Calling Rollback on an already aborted transaction + // If the transaction is already aborted, we can get out now. Calling Rollback on an already aborted transaction // is legal. if (TransactionStatus.Aborted == Status) { @@ -1053,7 +1053,7 @@ internal void Rollback() } catch (COMException comException) { - // If the ErrorCode is XACT_E_ALREADYINPROGRESS and the transaciton is already doomed, we must be + // If the ErrorCode is XACT_E_ALREADYINPROGRESS and the transaction is already doomed, we must be // the root transaction and we have already called Commit - ignore the exception. The // Rollback is allowed and one of the enlistments that hasn't voted yet will make sure it is // aborted. @@ -1128,7 +1128,7 @@ internal void FireOutcome(TransactionStatus statusArg) } #pragma warning disable IDE0031 // Null check can be simplified - // Let the InternalTransaciton know about the outcome. + // Let the InternalTransaction know about the outcome. if (InternalTransaction != null) { InternalTransaction.DistributedTransactionOutcome(InternalTransaction, Status); diff --git a/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxVolatileEnlistment.cs b/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxVolatileEnlistment.cs index dee045aba08c03..d882da8424fc12 100644 --- a/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxVolatileEnlistment.cs +++ b/src/libraries/System.Transactions.Local/src/System/Transactions/Oletx/OletxVolatileEnlistment.cs @@ -1216,7 +1216,7 @@ internal void Rollback() } // There is a small race where Rollback could be called when the enlistment is already - // aborting the transaciton, so just ignore that call. When the app enlistment + // aborting the transaction, so just ignore that call. When the app enlistment // finishes responding to its Rollback notification with EnlistmentDone, things will get // cleaned up. break;