diff options
| author | cui fliter <imcusg@gmail.com> | 2023-11-03 19:33:51 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2024-04-02 15:20:05 +0000 |
| commit | e0cd90528e1ea9d8e7362391b645178fcd0a7e03 (patch) | |
| tree | 3a5260c9507bfeaefc5379c0c34e411040e4b817 /src/reflect/makefunc.go | |
| parent | daaf1f222063174eb7f0938eee38f7f9f364263c (diff) | |
| download | go-e0cd90528e1ea9d8e7362391b645178fcd0a7e03.tar.xz | |
reflect: add available godoc link
Change-Id: Ib199ce1a781e8e3a66d3dc8bda617e6bc30b290e
Reviewed-on: https://go-review.googlesource.com/c/go/+/539578
Auto-Submit: Ian Lance Taylor <iant@google.com>
Run-TryBot: shuang cui <imcusg@gmail.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Reviewed-by: qiulaidongfeng <2645477756@qq.com>
Diffstat (limited to 'src/reflect/makefunc.go')
| -rw-r--r-- | src/reflect/makefunc.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/reflect/makefunc.go b/src/reflect/makefunc.go index 2ed7f38905..5da6cd2ec7 100644 --- a/src/reflect/makefunc.go +++ b/src/reflect/makefunc.go @@ -22,7 +22,7 @@ type makeFuncImpl struct { fn func([]Value) []Value } -// MakeFunc returns a new function of the given Type +// MakeFunc returns a new function of the given [Type] // that wraps the function fn. When called, that new function // does the following: // @@ -30,14 +30,14 @@ type makeFuncImpl struct { // - runs results := fn(args). // - returns the results as a slice of Values, one per formal result. // -// The implementation fn can assume that the argument Value slice +// The implementation fn can assume that the argument [Value] slice // has the number and type of arguments given by typ. // If typ describes a variadic function, the final Value is itself // a slice representing the variadic arguments, as in the // body of a variadic function. The result Value slice returned by fn // must have the number and type of results given by typ. // -// The Value.Call method allows the caller to invoke a typed function +// The [Value.Call] method allows the caller to invoke a typed function // in terms of Values; in contrast, MakeFunc allows the caller to implement // a typed function in terms of Values. // |
