Skip to content

Commit 478af80

Browse files
committed
doc/go_spec: tweak wording to avoid 'explicit assignment' misreading
This text changed in CL 139099 to add "explicit" in front of "conversion". But now "explicit conversion or assignment" reads like it might mean "explicit [conversion or assignment]" when what is meant is "[explicit conversion] or assignment". To make clear that explicit does not apply to assignment, use "assignment or explicit conversion". Change-Id: I8ff7a5b3ecd9f562793502fa6808242f22264f28 Reviewed-on: https://go-review.googlesource.com/c/149340 Reviewed-by: Robert Griesemer <[email protected]>
1 parent b19adfd commit 478af80

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

doc/go_spec.html

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!--{
22
"Title": "The Go Programming Language Specification",
3-
"Subtitle": "Version of November 12, 2018",
3+
"Subtitle": "Version of November 16, 2018",
44
"Path": "/ref/spec"
55
}-->
66

@@ -1348,8 +1348,9 @@ <h3 id="Channel_types">Channel types</h3>
13481348
The optional <code>&lt;-</code> operator specifies the channel <i>direction</i>,
13491349
<i>send</i> or <i>receive</i>. If no direction is given, the channel is
13501350
<i>bidirectional</i>.
1351-
A channel may be constrained only to send or only to receive by explicit
1352-
<a href="#Conversions">conversion</a> or <a href="#Assignments">assignment</a>.
1351+
A channel may be constrained only to send or only to receive by
1352+
<a href="#Assignments">assignment</a> or
1353+
explicit <a href="#Conversions">conversion</a>.
13531354
</p>
13541355

13551356
<pre>
@@ -3624,7 +3625,7 @@ <h4 id="Integer_overflow">Integer overflow</h4>
36243625
<code>-</code>, <code>*</code>, <code>/</code>, and <code>&lt;&lt;</code> may legally
36253626
overflow and the resulting value exists and is deterministically defined
36263627
by the signed integer representation, the operation, and its operands.
3627-
Overflow does not cause a <a href="#Run_time_panics">run-time panic</a>.
3628+
Overflow does not cause a <a href="#Run_time_panics">run-time panic</a>.
36283629
A compiler may not optimize code under the assumption that overflow does
36293630
not occur. For instance, it may not assume that <code>x &lt; x + 1</code> is always true.
36303631
</p>

0 commit comments

Comments
 (0)