]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile/internal/gc: use plural nouns in comments
authorhk <hk@tinyclouds.cn>
Mon, 19 Oct 2020 12:11:13 +0000 (12:11 +0000)
committerKeith Randall <khr@golang.org>
Mon, 19 Oct 2020 21:40:56 +0000 (21:40 +0000)
Change-Id: I99a5b5b88495cfaef16d41ee4b962c5d0b3488aa
GitHub-Last-Rev: fa0d895b3a87e45f499f02651a5f0e4946124765
GitHub-Pull-Request: golang/go#42059
Reviewed-on: https://go-review.googlesource.com/c/go/+/263617
Reviewed-by: Keith Randall <khr@golang.org>
Trust: Keith Randall <khr@golang.org>
Trust: Robert Griesemer <gri@golang.org>

src/cmd/compile/internal/gc/go.go

index 2fbdf71055398566cc7dd6bec26ee12cd79ade52..ee2add3733b6f5c65924f6770c045a4f7ca75066 100644 (file)
@@ -61,12 +61,12 @@ type Class uint8
 //go:generate stringer -type=Class
 const (
        Pxxx      Class = iota // no class; used during ssa conversion to indicate pseudo-variables
-       PEXTERN                // global variable
+       PEXTERN                // global variables
        PAUTO                  // local variables
-       PAUTOHEAP              // local variable or parameter moved to heap
+       PAUTOHEAP              // local variables or parameters moved to heap
        PPARAM                 // input arguments
        PPARAMOUT              // output results
-       PFUNC                  // global function
+       PFUNC                  // global functions
 
        // Careful: Class is stored in three bits in Node.flags.
        _ = uint((1 << 3) - iota) // static assert for iota <= (1 << 3)