• Agniva De Sarker's avatar
    go/doc: tune association of a function with a type · 60795360
    Agniva De Sarker authored
    Previously, we used to associate a function with its first returned type
    assuming that it is a factory function for that type.
    
    However, a function may return multiple types in which case it is usually
    doing something else. Check for multiple return types, and treat it as
    a normal function in that case. Maintain same behavior if the function
    returns just one type.
    
    Fixes #12839
    
    Change-Id: Ic4ac11d322996f216f593b71f4e61ad4270d5213
    Reviewed-on: https://go-review.googlesource.com/105575Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
    Run-TryBot: Robert Griesemer <gri@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    60795360
Name
Last commit
Last update
..
ast Loading commit data...
build Loading commit data...
constant Loading commit data...
doc Loading commit data...
format Loading commit data...
importer Loading commit data...
internal Loading commit data...
parser Loading commit data...
printer Loading commit data...
scanner Loading commit data...
token Loading commit data...
types Loading commit data...