diff --git a/builders.go b/builders.go index bf6885086404775e81b0b4c78e0a4c97c0ad5979..9f9d558a1446b25ac3a9f7d799a5b6a4f599d339 100644 --- a/builders.go +++ b/builders.go @@ -307,7 +307,7 @@ func (b *JournalEntryBuilder) Build() *CreateJournalEntryRequest { // req := lunatask.NewPerson(). // WithFirstName("Ada"). // WithLastName("Lovelace"). -// WithRelationshipStrength("close"). +// WithRelationshipStrength(lunatask.RelationshipCloseFriend). // Build() // person, err := client.CreatePerson(ctx, req) type PersonBuilder struct { @@ -334,7 +334,7 @@ func (b *PersonBuilder) WithLastName(name string) *PersonBuilder { } // WithRelationshipStrength categorizes the closeness of the relationship. -// Use one of the Relationship* constants (e.g., RelationshipCloseFriend). +// Use one of the Relationship* constants (e.g., [RelationshipCloseFriend]). func (b *PersonBuilder) WithRelationshipStrength(strength RelationshipStrength) *PersonBuilder { b.req.RelationshipStrength = &strength diff --git a/lunatask.go b/lunatask.go index d2c4ad726c1ea21e88c6f0bbe44e34f9ea0567e7..a2d80b9a71cd8dcfa80a42004f16158b25853a74 100644 --- a/lunatask.go +++ b/lunatask.go @@ -144,7 +144,7 @@ type PingResponse struct { } // Ping verifies the access token is valid by calling the /ping endpoint. -// Returns the ping response on success, or an error (typically ErrUnauthorized) on failure. +// Returns the ping response on success, or an error (typically [ErrUnauthorized]) on failure. func (c *Client) Ping(ctx context.Context) (*PingResponse, error) { resp, _, err := doJSON[PingResponse](ctx, c, http.MethodGet, "/ping", nil)