Skip to content

Commit

Permalink
Fix some typos
Browse files Browse the repository at this point in the history
  • Loading branch information
printesoi committed Oct 20, 2024
1 parent 3a16671 commit ef9a1fd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/client/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ type ApiClientConfig struct {
// Until this library will support authentication with the SPV certificate,
// this must always be provided.
TokenSource xoauth2.TokenSource
// Unless BaseURL is set, Sandbox controlls whether to use production
// Unless BaseURL is set, Sandbox controls whether to use production
// endpoints (if set to false) or test endpoints (if set to true).
Sandbox bool
// Context to use for creating the HTTP client. If not set,
Expand Down
4 changes: 2 additions & 2 deletions pkg/efactura/rest.go
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@ func (c *Client) ValidateInvoice(ctx context.Context, invoice Invoice) (*Validat
}

// XMLToPDF converts the given XML to PDF. To check if the generation is indeed
// successful and no validation or other invalid request error occured, check
// successful and no validation or other invalid request error occurred, check
// if response.IsOk() == true.
func (c *Client) XMLToPDF(ctx context.Context, xml io.Reader, st ValidateStandard, noValidate bool) (response *GeneratePDFResponse, err error) {
path := fmt.Sprintf(publicApiPathXMLToPDF, st)
Expand Down Expand Up @@ -588,7 +588,7 @@ type uploadOptions struct {

type UploadOption func(*uploadOptions)

// UploadOptionForeign is an upload option specifiying that the buyer is not a
// UploadOptionForeign is an upload option specifying that the buyer is not a
// Romanian entity (no CUI or NIF).
func UploadOptionForeign() UploadOption {
return func(o *uploadOptions) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/errors/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (e *BuilderError) Error() string {
}

// ValidateSignatureError is an error returned if the signature cannot be
// succesfully validated.
// successfully validated.
type ValidateSignatureError struct {
error
}
Expand Down

0 comments on commit ef9a1fd

Please sign in to comment.