From 234fb0a208f105352d33456159725a3fce3a3071 Mon Sep 17 00:00:00 2001 From: Eric Wang Date: Sat, 12 Jun 2021 18:22:25 +0800 Subject: [PATCH] runtime: update the variable name in comment The comment use allg to refer to allgs in code. Update the comment to use the same variable name. --- src/runtime/proc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/runtime/proc.go b/src/runtime/proc.go index 59160c6525..8f1a443945 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -529,8 +529,8 @@ var ( allglock mutex allgs []*g - // allglen and allgptr are atomic variables that contain len(allg) and - // &allg[0] respectively. Proper ordering depends on totally-ordered + // allglen and allgptr are atomic variables that contain len(allgs) and + // &allgs[0] respectively. Proper ordering depends on totally-ordered // loads and stores. Writes are protected by allglock. // // allgptr is updated before allglen. Readers should read allglen