Skip to content
Snippets Groups Projects
Commit 12f3d685 authored by Rob Findley's avatar Rob Findley Committed by Robert Findley
Browse files

go/types, types2: update documentation for GoVersion

Update the documentation for Config.GoVersion to reflect the changes
made for #61175.

Change-Id: I9f3fbcf8ee88e52d6a5e7cf80dad3d2fb5313893
Reviewed-on: https://go-review.googlesource.com/c/go/+/511096


TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Robert Findley <rfindley@google.com>
Reviewed-by: default avatarRobert Griesemer <gri@google.com>
parent f2d709b7
No related branches found
No related tags found
No related merge requests found
...@@ -110,11 +110,11 @@ type Config struct { ...@@ -110,11 +110,11 @@ type Config struct {
// type checker will initialize this field with a newly created context. // type checker will initialize this field with a newly created context.
Context *Context Context *Context
// GoVersion describes the accepted Go language version. The string // GoVersion describes the accepted Go language version. The string must
// must follow the format "go%d.%d" (e.g. "go1.12") or ist must be // start with a prefix of the form "go%d.%d" (e.g. "go1.20", "go1.21rc1", or
// empty; an empty string disables Go language version checks. // "go1.21.0") or it must be empty; an empty string disables Go language
// If the format is invalid, invoking the type checker will cause a // version checks. If the format is invalid, invoking the type checker will
// panic. // result in an error.
GoVersion string GoVersion string
// If IgnoreFuncBodies is set, function bodies are not // If IgnoreFuncBodies is set, function bodies are not
......
...@@ -114,11 +114,11 @@ type Config struct { ...@@ -114,11 +114,11 @@ type Config struct {
// type checker will initialize this field with a newly created context. // type checker will initialize this field with a newly created context.
Context *Context Context *Context
// GoVersion describes the accepted Go language version. The string // GoVersion describes the accepted Go language version. The string must
// must follow the format "go%d.%d" (e.g. "go1.12") or it must be // start with a prefix of the form "go%d.%d" (e.g. "go1.20", "go1.21rc1", or
// empty; an empty string disables Go language version checks. // "go1.21.0") or it must be empty; an empty string disables Go language
// If the format is invalid, invoking the type checker will cause a // version checks. If the format is invalid, invoking the type checker will
// panic. // result in an error.
GoVersion string GoVersion string
// If IgnoreFuncBodies is set, function bodies are not // If IgnoreFuncBodies is set, function bodies are not
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment