Fix baseurl comments on AppendPath and WithPath

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-02-02 13:32:36 +04:00
parent ab9c0fb85f
commit 39ccb282ca

View File

@@ -116,7 +116,7 @@ type URLBuilder struct {
} }
// WithPath returns a URLBuilder with the specified path. // WithPath returns a URLBuilder with the specified path.
// The path will be properly joined with the base URL's path. // The path will be properly joined with the base URL.
func (b *BaseURL) WithPath(path string) *URLBuilder { func (b *BaseURL) WithPath(path string) *URLBuilder {
if b == nil { if b == nil {
return &URLBuilder{err: fmt.Errorf("base URL is nil")} return &URLBuilder{err: fmt.Errorf("base URL is nil")}
@@ -137,7 +137,7 @@ func (b *BaseURL) WithPath(path string) *URLBuilder {
} }
} }
// WithPath returns a URLBuilder with the specified path. // AppendPath returns a URLBuilder with the specified path.
// The path will be properly joined with the base URL's path. // The path will be properly joined with the base URL's path.
func (b *BaseURL) AppendPath(path string) *URLBuilder { func (b *BaseURL) AppendPath(path string) *URLBuilder {
if b == nil { if b == nil {