Fix comment (#2775)

This commit is contained in:
Marco Munizaga
2024-04-22 10:48:29 -07:00
committed by GitHub
parent c5d50ea117
commit e61c36f9d7

View File

@@ -48,7 +48,7 @@ func ChainOptions(opts ...Option) Option {
// - If no peerstore is provided, the host is initialized with an empty
// peerstore.
//
// To stop/shutdown the returned libp2p node, the user needs to cancel the passed context and call `Close` on the returned Host.
// To stop/shutdown the returned libp2p node, the user needs to call `Close` on the returned Host.
func New(opts ...Option) (host.Host, error) {
return NewWithoutDefaults(append(opts, FallbackDefaults)...)
}