]> Cypherpunks repositories - gostls13.git/commitdiff
all: remove unnecessary symbols and add missing symbols
authorcuishuang <imcusg@gmail.com>
Mon, 9 Sep 2024 04:22:05 +0000 (12:22 +0800)
committerGopher Robot <gobot@golang.org>
Mon, 9 Sep 2024 16:44:45 +0000 (16:44 +0000)
Change-Id: I535a7aaaf3f9e8a9c0e0c04f8f745ad7445a32f7
Reviewed-on: https://go-review.googlesource.com/c/go/+/611678
Run-TryBot: shuang cui <imcusg@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/compile/internal/inline/inlheur/scoring.go
src/cmd/compile/internal/syntax/printer.go
src/cmd/compile/internal/types2/compiler_internal.go
src/cmd/go/internal/vcs/discovery.go
src/cmd/internal/dwarf/dwarf.go
src/cmd/internal/src/pos.go
src/go/build/deps_test.go
src/go/printer/nodes.go
src/math/big/ftoa.go
src/time/zoneinfo_windows.go

index 2e39f1e6067022d131caa6969b9eaa1a82ec9cd1..28fa643132952a526b725853c288009e39216701 100644 (file)
@@ -369,7 +369,7 @@ func setupFlagToAdjMaps() {
 // "call in loop". If the calculated cost of the function is 150, and
 // the in-loop adjustment is 5 (for example), then there is not much
 // point treating it as inlinable. On the other hand "bar" has a param
-// property (parameter "x" feeds unmodified to an "if" statement") and
+// property (parameter "x" feeds unmodified to an "if" statement) and
 // a return property (always returns same constant) meaning that a
 // given call _could_ be rescored down as much as -35 points-- thus if
 // the size of "bar" is 100 (for example) then there is at least a
index 3b234d43f9b8d0a97efeb2f5701d1edd3c6d6b41..1c0bfc190ecf292efbfbb233d7b1c45fb1396703 100644 (file)
@@ -931,7 +931,7 @@ func (p *printer) printParameterList(list []*Field, tok token) {
 // combinesWithName reports whether a name followed by the expression x
 // syntactically combines to another valid (value) expression. For instance
 // using *T for x, "name *T" syntactically appears as the expression x*T.
-// On the other hand, using  P|Q or *P|~Q for x, "name P|Q" or name *P|~Q"
+// On the other hand, using  P|Q or *P|~Q for x, "name P|Q" or "name *P|~Q"
 // cannot be combined into a valid (value) expression.
 func combinesWithName(x Expr) bool {
        switch x := x.(type) {
index 790a6779e473e5dcf20ea347eaa04a4825268f54..7b976625ef8cef8b4d4f493c10431738c6a7805e 100644 (file)
@@ -15,7 +15,7 @@ import (
 // does not have a name and if the result in the signature also does not have a name,
 // then the signature and field are renamed to
 //
-//     fmt.Sprintf("#rv%d", i+1)`
+//     fmt.Sprintf("#rv%d", i+1)
 //
 // the newly named object is inserted into the signature's scope,
 // and the object and new field name are returned.
index 327b44cb9afa8fcee402fbb6385b0dd822abf3de..bc2c5a35ac1a0604032c336b5d83041a51ead3b3 100644 (file)
@@ -86,7 +86,7 @@ func parseMetaGoImports(r io.Reader, mod ModuleMode) ([]metaImport, error) {
 }
 
 // attrValue returns the attribute value for the case-insensitive key
-// `name', or the empty string if nothing is found.
+// `name`, or the empty string if nothing is found.
 func attrValue(attrs []xml.Attr, name string) string {
        for _, a := range attrs {
                if strings.EqualFold(a.Name.Local, name) {
index eb363a2436d056ae3a37e8b8865f1e5eaedbd149..02e4c94c3a1b26e137078cdf46330f8e0d3d363c 100644 (file)
@@ -31,7 +31,7 @@ const ConstInfoPrefix = "go:constinfo."
 // populate the DWARF compilation unit info entries.
 const CUInfoPrefix = "go:cuinfo."
 
-// Used to form the symbol name assigned to the DWARF 'abstract subprogram"
+// Used to form the symbol name assigned to the DWARF "abstract subprogram"
 // info entry for a function
 const AbstractFuncSuffix = "$abstract"
 
index 4d71c8190a8f83f8eb398bcb3f57d9bd51bb1f2e..10609fcd484b8f3232ec2f53db22022f1cf9eff4 100644 (file)
@@ -127,7 +127,7 @@ func (p Pos) String() string {
 // Format formats a position as "filename:line" or "filename:line:column",
 // controlled by the showCol flag and if the column is known (!= 0).
 // For positions relative to line directives, the original position is
-// shown as well, as in "filename:line[origfile:origline:origcolumn] if
+// shown as well, as in "filename:line[origfile:origline:origcolumn]" if
 // showOrig is set.
 func (p Pos) Format(showCol, showOrig bool) string {
        buf := new(bytes.Buffer)
index 441cf8d051c934c4a181fdc564394b015ad0a7ad..b6d956596c036d38900d3dc6dc5f285cfd2ffad0 100644 (file)
@@ -32,7 +32,7 @@ import (
 //
 // "a < b" means package b can import package a.
 //
-// See `go doc internal/dag' for the full syntax.
+// See `go doc internal/dag` for the full syntax.
 //
 // All-caps names are pseudo-names for specific points
 // in the dependency lattice.
index 38d6f62a95cd2285d53951878b1bf7ce1d514da7..9e796132801db26bf3006f64feebb1efb1ccbfe5 100644 (file)
@@ -401,7 +401,7 @@ func (p *printer) parameters(fields *ast.FieldList, mode paramMode) {
 // combinesWithName reports whether a name followed by the expression x
 // syntactically combines to another valid (value) expression. For instance
 // using *T for x, "name *T" syntactically appears as the expression x*T.
-// On the other hand, using  P|Q or *P|~Q for x, "name P|Q" or name *P|~Q"
+// On the other hand, using  P|Q or *P|~Q for x, "name P|Q" or "name *P|~Q"
 // cannot be combined into a valid (value) expression.
 func combinesWithName(x ast.Expr) bool {
        switch x := x.(type) {
index f7a4345d3acf98821a6071b9c54d025ba54d3a5a..c5939d731db8a5df2539f692d7a27cf1ce210328 100644 (file)
@@ -309,7 +309,7 @@ func fmtF(buf []byte, prec int, d decimal) []byte {
 }
 
 // fmtB appends the string of x in the format mantissa "p" exponent
-// with a decimal mantissa and a binary exponent, or 0" if x is zero,
+// with a decimal mantissa and a binary exponent, or "0" if x is zero,
 // and returns the extended buffer.
 // The mantissa is normalized such that is uses x.Prec() bits in binary
 // representation.
index c9f38ea3e058d874f4dac9f1a8c6ab1765da8ac3..55b21fa301584bba185104eca365c00da432bdcc 100644 (file)
@@ -20,7 +20,7 @@ var platformZoneSources []string // none: Windows uses system calls instead
 // time apply to all previous and future years as well.
 
 // matchZoneKey checks if stdname and dstname match the corresponding key
-// values "MUI_Std" and MUI_Dlt" or "Std" and "Dlt" in the kname key stored
+// values "MUI_Std" and "MUI_Dlt" or "Std" and "Dlt" in the kname key stored
 // under the open registry key zones.
 func matchZoneKey(zones registry.Key, kname string, stdname, dstname string) (matched bool, err2 error) {
        k, err := registry.OpenKey(zones, kname, registry.READ)