diff --git a/docs/patterns/circuit-breaker.md b/docs/patterns/circuit-breaker.md index 583324a5b90..90e27026a5e 100644 --- a/docs/patterns/circuit-breaker.md +++ b/docs/patterns/circuit-breaker.md @@ -209,7 +209,7 @@ Additionally, it uses a lock to prevent the circuit breaker from trying to perfo bool lockTaken = false; try { - Monitor.TryEnter(halfOpenSyncObject, ref lockTaken) + Monitor.TryEnter(halfOpenSyncObject, ref lockTaken); if (lockTaken) { // Set the circuit breaker state to HalfOpen.