[go] spec: s/defined/declared/ in a handful of places (cleanup)

0 views
Skip to first unread message

Robert Griesemer (Gerrit)

unread,
Mar 19, 2026, 7:39:09 PM (10 hours ago) Mar 19
to goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Robert Griesemer has uploaded the change for review

Commit message

spec: s/defined/declared/ in a handful of places (cleanup)

Use "declared" rather than "defined" where referring to a declaration
(rather than a type definition) is more appropriate.
Change-Id: I691b55e05fcdce489e45286c7a88cbd992e80e57

Change diff

diff --git a/doc/go_spec.html b/doc/go_spec.html
index dbc8942..c7b929c 100644
--- a/doc/go_spec.html
+++ b/doc/go_spec.html
@@ -2989,7 +2989,7 @@
pointer to a defined type <code>T</code>, possibly followed by a list of type parameter
names <code>[P1, P2, …]</code> enclosed in square brackets.
<code>T</code> is called the receiver <i>base type</i>. A receiver base type cannot be
-a pointer or interface type and it must be defined in the same package as the method.
+a pointer or interface type and it must be declared in the same package as the method.
The method is said to be <i>bound</i> to its receiver base type and the method name
is visible only within <a href="#Selectors">selectors</a> for type <code>T</code>
or <code>*T</code>.
@@ -3410,7 +3410,7 @@

<p>
Function literals are <i>closures</i>: they may refer to variables
-defined in a surrounding function. Those variables are then shared between
+declared in a surrounding function. Those variables are then shared between
the surrounding function and the function literal, and they survive as long
as they are accessible.
</p>
@@ -8341,7 +8341,7 @@
</pre>

<p>
-Multiple such functions may be defined per package, even within a single
+Multiple such functions may be declared per package, even within a single
source file. In the package block, the <code>init</code> identifier can
be used only to declare <code>init</code> functions, yet the identifier
itself is not <a href="#Declarations_and_scope">declared</a>. Thus
@@ -8423,7 +8423,7 @@
<p>
It is the conventional interface for representing an error condition,
with the nil value representing no error.
-For instance, a function to read data from a file might be defined:
+For instance, a function to read data from a file might be declared:
</p>

<pre>

Change information

Files:
  • M doc/go_spec.html
Change size: XS
Delta: 1 file changed, 4 insertions(+), 4 deletions(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I691b55e05fcdce489e45286c7a88cbd992e80e57
Gerrit-Change-Number: 757121
Gerrit-PatchSet: 1
Gerrit-Owner: Robert Griesemer <g...@google.com>
unsatisfied_requirement
satisfied_requirement
open
diffy

Robert Griesemer (Gerrit)

unread,
Mar 19, 2026, 7:39:55 PM (10 hours ago) Mar 19
to goph...@pubsubhelper.golang.org, Alan Donovan, golang-co...@googlegroups.com
Attention needed from Alan Donovan

Robert Griesemer voted

Auto-Submit+1
Code-Review+1
Commit-Queue+1
Open in Gerrit

Related details

Attention is currently required from:
  • Alan Donovan
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: go
Gerrit-Branch: master
Gerrit-Change-Id: I691b55e05fcdce489e45286c7a88cbd992e80e57
Gerrit-Change-Number: 757121
Gerrit-PatchSet: 1
Gerrit-Owner: Robert Griesemer <g...@google.com>
Gerrit-Reviewer: Alan Donovan <adon...@google.com>
Gerrit-Reviewer: Robert Griesemer <g...@google.com>
Gerrit-Attention: Alan Donovan <adon...@google.com>
Gerrit-Comment-Date: Thu, 19 Mar 2026 23:39:51 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
unsatisfied_requirement
satisfied_requirement
open
diffy

Robert Griesemer (Gerrit)

unread,
Mar 19, 2026, 7:55:37 PM (9 hours ago) Mar 19
to goph...@pubsubhelper.golang.org, Go LUCI, Alan Donovan, golang-co...@googlegroups.com
Attention needed from Alan Donovan

Robert Griesemer voted and added 1 comment

Votes added by Robert Griesemer

TryBot-Bypass+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Robert Griesemer . resolved

Failure is definitely unrelated.

Open in Gerrit

Related details

Attention is currently required from:
  • Alan Donovan
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: go
    Gerrit-Branch: master
    Gerrit-Change-Id: I691b55e05fcdce489e45286c7a88cbd992e80e57
    Gerrit-Change-Number: 757121
    Gerrit-PatchSet: 1
    Gerrit-Owner: Robert Griesemer <g...@google.com>
    Gerrit-Reviewer: Alan Donovan <adon...@google.com>
    Gerrit-Reviewer: Robert Griesemer <g...@google.com>
    Gerrit-Attention: Alan Donovan <adon...@google.com>
    Gerrit-Comment-Date: Thu, 19 Mar 2026 23:55:33 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    unsatisfied_requirement
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages