]> Cypherpunks.ru repositories - gostls13.git/commitdiff
plugin: add available godoc link
authorcui fliter <imcusg@gmail.com>
Fri, 3 Nov 2023 11:19:58 +0000 (19:19 +0800)
committerCherry Mui <cherryyz@google.com>
Mon, 6 Nov 2023 19:46:10 +0000 (19:46 +0000)
Change-Id: I371b52215d3f9efdcab1439e7215f340dbf1ec08
Reviewed-on: https://go-review.googlesource.com/c/go/+/539598
Run-TryBot: shuang cui <imcusg@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Heschi Kreinick <heschi@google.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/plugin/plugin.go

index 187d127432892f2ae83b4739916413a7af8adf9e..b4b1697b52c82dc0cd59beaab6d38d3551118f9a 100644 (file)
@@ -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")