]> Cypherpunks repositories - gostls13.git/commit
all: move //go: function directives directly above functions
authorMichael Pratt <mpratt@google.com>
Thu, 2 Mar 2023 22:09:22 +0000 (17:09 -0500)
committerMichael Pratt <mpratt@google.com>
Thu, 2 Mar 2023 22:56:35 +0000 (22:56 +0000)
commit79d4e894ed9d31396c3e25e7b9a9e99a7c6537e7
tree06e6aa0e94fe14c94b261f05cb86af83f9b88635
parent6f4d986a5af3245a3c66172e5fab9609652ff219
all: move //go: function directives directly above functions

These directives affect the next declaration, so the existing form is
valid, but can be confusing because it is easy to miss. Move then
directly above the declaration for improved readability.

CL 69120 previously moved the Gosched nosplit away to hide it from
documentation. Since CL 224737, directives are automatically excluded
from documentation.

Change-Id: I8ebf2d47fbb5e77c6f40ed8afdf79eaa4f4e335e
Reviewed-on: https://go-review.googlesource.com/c/go/+/472957
Run-TryBot: Michael Pratt <mpratt@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Austin Clements <austin@google.com>
src/cmd/internal/notsha256/sha256block_decl.go
src/crypto/md5/md5block_decl.go
src/crypto/sha1/sha1block_decl.go
src/crypto/sha256/sha256block_decl.go
src/crypto/sha512/sha512block_decl.go
src/internal/bytealg/index_native.go
src/runtime/os_solaris.go
src/runtime/proc.go
src/runtime/race.go
src/syscall/dll_windows.go