crypto/ssh: add Client.Close in Dial example
Fixes golang/go#41906
Run-TryBot: Emmanuel Odeke
TryBot-Result: Go Bot
Trust: Roland Shoemaker
@@ -198,6 +198,7 @@ func ExampleDial() {
if err != nil {
log.Fatal("Failed to dial: ", err)
}
+ defer client.Close()
// Each ClientConn can support multiple interactive sessions,
// represented by a Session.
