From 5afde13977e624ab3bd64e5801f75f9e8eb1f41b Mon Sep 17 00:00:00 2001 From: h3n4l <87714218+h3n4l@users.noreply.github.com> Date: Mon, 8 Nov 2021 23:44:02 +0800 Subject: [PATCH] fixed the comment of Opts.DeadlockTimeout in deadlock.go (#23) --- deadlock.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deadlock.go b/deadlock.go index 23813a0..83e581d 100644 --- a/deadlock.go +++ b/deadlock.go @@ -21,7 +21,7 @@ var Opts = struct { // Would disable lock order based deadlock detection if DisableLockOrderDetection == true. DisableLockOrderDetection bool // Waiting for a lock for longer than DeadlockTimeout is considered a deadlock. - // Ignored is DeadlockTimeout <= 0. + // Ignored if DeadlockTimeout <= 0. DeadlockTimeout time.Duration // OnPotentialDeadlock is called each time a potential deadlock is detected -- either based on // lock order or on lock wait time.