From b373d31c25e58d0b69cff3521b915f0c06fa6ac8 Mon Sep 17 00:00:00 2001 From: LE Manh Cuong Date: Tue, 18 Jun 2019 01:14:22 +0700 Subject: [PATCH] cmd/compile: correct comments of gc.Val fields Refer to Val.Ctype method instead of non-existed n.ValCtype one. Change-Id: Ie0fbcae87d9f4f97632865676309d98e0b5138c4 Reviewed-on: https://go-review.googlesource.com/c/go/+/182561 Run-TryBot: Cuong Manh Le TryBot-Result: Gobot Gobot Reviewed-by: Matthew Dempsky --- src/cmd/compile/internal/gc/const.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/cmd/compile/internal/gc/const.go b/src/cmd/compile/internal/gc/const.go index 39adba0f07..4ed881bc07 100644 --- a/src/cmd/compile/internal/gc/const.go +++ b/src/cmd/compile/internal/gc/const.go @@ -27,12 +27,12 @@ const ( type Val struct { // U contains one of: - // bool bool when n.ValCtype() == CTBOOL - // *Mpint int when n.ValCtype() == CTINT, rune when n.ValCtype() == CTRUNE - // *Mpflt float when n.ValCtype() == CTFLT - // *Mpcplx pair of floats when n.ValCtype() == CTCPLX - // string string when n.ValCtype() == CTSTR - // *Nilval when n.ValCtype() == CTNIL + // bool bool when Ctype() == CTBOOL + // *Mpint int when Ctype() == CTINT, rune when Ctype() == CTRUNE + // *Mpflt float when Ctype() == CTFLT + // *Mpcplx pair of floats when Ctype() == CTCPLX + // string string when Ctype() == CTSTR + // *Nilval when Ctype() == CTNIL U interface{} } -- 2.50.0