mirror of
https://blitiri.com.ar/repos/chasquid
synced 2025-12-17 14:37:02 +00:00
docs: Add missing docstrings, adjust wording to match standard style
This patch adds a missing docstrings for exported identifiers, and adjust some of the existing ones to match the standard style. In some cases, the identifiers were un-exported after noticing they had no external users. Besides improving documentation, it also reduces the linter noise significantly.
This commit is contained in:
@@ -22,6 +22,7 @@ type Client struct {
|
||||
*smtp.Client
|
||||
}
|
||||
|
||||
// NewClient uses the given connection to create a new Client.
|
||||
func NewClient(conn net.Conn, host string) (*Client, error) {
|
||||
c, err := smtp.NewClient(conn, host)
|
||||
if err != nil {
|
||||
@@ -129,7 +130,7 @@ func isASCII(s string) bool {
|
||||
return true
|
||||
}
|
||||
|
||||
// ErrIsPermanent returns true if the error is permanent, and false otherwise.
|
||||
// IsPermanent returns true if the error is permanent, and false otherwise.
|
||||
// If it can't tell, it returns false.
|
||||
func IsPermanent(err error) bool {
|
||||
terr, ok := err.(*textproto.Error)
|
||||
|
||||
Reference in New Issue
Block a user