1
0
mirror of https://github.com/golang/go synced 2024-10-04 15:11:20 -06:00
go/src/crypto/rsa
Brad Fitzpatrick 351c15f1ce all: remove public named return values when useless
Named returned values should only be used on public funcs and methods
when it contributes to the documentation.

Named return values should not be used if they're only saving the
programmer a few lines of code inside the body of the function,
especially if that means there's stutter in the documentation or it
was only there so the programmer could use a naked return
statement. (Naked returns should not be used except in very small
functions)

This change is a manual audit & cleanup of public func signatures.

Signatures were not changed if:

* the func was private (wouldn't be in public godoc)
* the documentation referenced it
* the named return value was an interesting name. (i.e. it wasn't
  simply stutter, repeating the name of the type)

There should be no changes in behavior. (At least: none intended)

Change-Id: I3472ef49619678fe786e5e0994bdf2d9de76d109
Reviewed-on: https://go-review.googlesource.com/20024
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-02-29 03:31:19 +00:00
..
testdata
example_test.go crypto/rsa: expand on documentation and add some examples. 2016-01-27 00:11:22 +00:00
pkcs1v15_test.go all: fix some vet-caught formatting errors, mostly but not only in tests 2015-08-21 05:37:36 +00:00
pkcs1v15.go all: remove public named return values when useless 2016-02-29 03:31:19 +00:00
pss_test.go
pss.go all: remove public named return values when useless 2016-02-29 03:31:19 +00:00
rsa_test.go crypto/rsa: check CRT result. 2015-12-17 00:00:33 +00:00
rsa.go all: remove public named return values when useless 2016-02-29 03:31:19 +00:00