From 5309828bc5d76d09d9ae65861e4cb131fa24c8ab Mon Sep 17 00:00:00 2001 From: sulenn <273409891@qq.com> Date: Fri, 13 Mar 2020 10:56:58 +0800 Subject: [PATCH] modify 'defer mu.Lock()' to 'defer mu.Unlock()' in question/q015.md --- question/q015.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/question/q015.md b/question/q015.md index b460d6a..f14a9d4 100644 --- a/question/q015.md +++ b/question/q015.md @@ -19,7 +19,7 @@ func main() { } func A() { mu.Lock() - defer mu.Lock() + defer mu.Unlock() chain = chain + " --> A" B() } @@ -29,7 +29,7 @@ func B() { } func C() { mu.Lock() - defer mu.Lock() + defer mu.Unlock() chain = chain + " --> C" } ```