From f8c5d04e55edcc8eb00a6c8143a2c6d22695f12b Mon Sep 17 00:00:00 2001 From: cui fliter Date: Fri, 3 Nov 2023 19:19:58 +0800 Subject: [PATCH] plugin: add available godoc link Change-Id: I371b52215d3f9efdcab1439e7215f340dbf1ec08 Reviewed-on: https://go-review.googlesource.com/c/go/+/539598 Run-TryBot: shuang cui TryBot-Result: Gopher Robot Reviewed-by: Heschi Kreinick Reviewed-by: Cherry Mui --- src/plugin/plugin.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugin/plugin.go b/src/plugin/plugin.go index 187d127432..b4b1697b52 100644 --- a/src/plugin/plugin.go +++ b/src/plugin/plugin.go @@ -74,7 +74,7 @@ type Plugin struct { } // Open opens a Go plugin. -// If a path has already been opened, then the existing *Plugin is returned. +// If a path has already been opened, then the existing *[Plugin] is returned. // It is safe for concurrent use by multiple goroutines. func Open(path string) (*Plugin, error) { return open(path) @@ -100,7 +100,7 @@ func (p *Plugin) Lookup(symName string) (Symbol, error) { // // func F() { fmt.Printf("Hello, number %d\n", V) } // -// may be loaded with the Open function and then the exported package +// may be loaded with the [Open] function and then the exported package // symbols V and F can be accessed // // p, err := plugin.Open("plugin_name.so") -- 2.50.0