From 8acdb60d6e255f73fdeb908d2540d4ee35db3fd7 Mon Sep 17 00:00:00 2001 From: Daniel Frederick Crisman Date: Mon, 10 Apr 2023 19:07:03 -0400 Subject: [PATCH] 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. --- doc/go_spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/go_spec.html b/doc/go_spec.html index cbcaf3a3385..e788f0956de 100644 --- a/doc/go_spec.html +++ b/doc/go_spec.html @@ -690,7 +690,7 @@ constant is implicitly converted in contexts where a typed value is required, for instance, in a short variable declaration such as i := 0 where there is no explicit type. The default type of an untyped constant is bool, rune, -int, float64, complex128 or string +int, float64, complex128, or string respectively, depending on whether it is a boolean, rune, integer, floating-point, complex, or string constant.