diff options
| author | Thomas Wanielista <tomwans@gmail.com> | 2017-12-22 16:17:56 -0500 |
|---|---|---|
| committer | Robert Griesemer <gri@golang.org> | 2018-06-12 16:37:37 +0000 |
| commit | adeb7e640b04526c38c481aff85b923ca14fc92b (patch) | |
| tree | ee8fd5153409d0a22b1282c51bfb17773563b4e7 /src/runtime/stack.go | |
| parent | f027d1a8782387fb7e354054a669a202524335e4 (diff) | |
| download | go-adeb7e640b04526c38c481aff85b923ca14fc92b.tar.xz | |
go/doc: classify function returning slice or array of T as constructor
Previously, go/doc would only consider functions and slices that
return types of T or any number of pointers to T: *T, **T, etc. This
change expands the definition of a constructor to include functions
that return arrays of a type (or pointer to that type) in its first
return.
With this change, the following return types also classify a function
as a constructor of type T:
[1]T
[1]*T
[1]**T
(and so on)
Fixes #22856.
Change-Id: I37957c5f2d6a7b2ceeb3fbaef359057f2039393d
Reviewed-on: https://go-review.googlesource.com/85355
Run-TryBot: Robert Griesemer <gri@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
Diffstat (limited to 'src/runtime/stack.go')
0 files changed, 0 insertions, 0 deletions
