1
0
mirror of https://github.com/golang/go synced 2024-11-26 12:37:57 -07:00

doc: add missing oxford comma in Constants

In the language specification under "Constants" the lists matching default
types to untyped contstant types is missing an Oxford comma in the first
list. I found a number of other places in the spec and #23442 that use the
Oxford comma to support its use.

Add missing Oxford comma in Constants default type list.
This commit is contained in:
Daniel Frederick Crisman 2023-04-10 19:07:03 -04:00
parent 313d965393
commit 8acdb60d6e

View File

@ -690,7 +690,7 @@ constant is implicitly converted in contexts where a typed value is required,
for instance, in a <a href="#Short_variable_declarations">short variable declaration</a> for instance, in a <a href="#Short_variable_declarations">short variable declaration</a>
such as <code>i := 0</code> where there is no explicit type. such as <code>i := 0</code> where there is no explicit type.
The default type of an untyped constant is <code>bool</code>, <code>rune</code>, The default type of an untyped constant is <code>bool</code>, <code>rune</code>,
<code>int</code>, <code>float64</code>, <code>complex128</code> or <code>string</code> <code>int</code>, <code>float64</code>, <code>complex128</code>, or <code>string</code>
respectively, depending on whether it is a boolean, rune, integer, floating-point, respectively, depending on whether it is a boolean, rune, integer, floating-point,
complex, or string constant. complex, or string constant.
</p> </p>