diff --git a/doc/README.md b/doc/README.md index bfd3c1e6a1..b0d99456da 100644 --- a/doc/README.md +++ b/doc/README.md @@ -48,7 +48,7 @@ Use the following forms in your markdown: To preview `next` content in merged form using a local instance of the website, run: ``` -go run golang.org/x/website/cmd/golangorg@latest -content='' -goroot=.. +go run golang.org/x/website/cmd/golangorg@latest -goroot=.. ``` Then open http://localhost:6060/doc/next. Refresh the page to see your latest edits. diff --git a/doc/next/2-language.md b/doc/next/2-language.md index db5d83a73e..9bd0bde083 100644 --- a/doc/next/2-language.md +++ b/doc/next/2-language.md @@ -1,16 +1,16 @@ ## Changes to the language {#language} -Go 1.23 makes the (Go 1.22) ["range-over-func" experiment](https://tip.golang.org/wiki/RangefuncExperiment) a part of the language. +Go 1.23 makes the (Go 1.22) ["range-over-func" experiment](/wiki/RangefuncExperiment) a part of the language. The "range" clause in a "for-range" loop now accepts iterator functions of the following types - func(func() bool) - func(func(K) bool) - func(func(K, V) bool) + func(func() bool) + func(func(K) bool) + func(func(K, V) bool) - as range expressions. - Calls of the iterator argument function produce the iteration values for the "for-range" loop. - For details see the [language spec](https://tip.golang.org/ref/spec#For_statements). +as range expressions. +Calls of the iterator argument function produce the iteration values for the "for-range" loop. +For details see the [language spec](/ref/spec#For_statements). Go 1.23 includes preview support for [generic type aliases](/issue/46477). diff --git a/doc/next/9-todo.md b/doc/next/9-todo.md index e253aa736a..eefdbe293c 100644 --- a/doc/next/9-todo.md +++ b/doc/next/9-todo.md @@ -1,8 +1,5 @@ - -TODO: Document that range-over-func is enabled (and that GOEXPERIMENT=rangefunc is relevant) in Go 1.23. This note should be moved to an appropriate location in the release notes. - TODO: The new `GOARM64` environment variable needs to be documented. This note should be moved to an appropriate location in the release notes.