From ef9a1fd38a96bd2f48e310249db85df8be6cfdd5 Mon Sep 17 00:00:00 2001 From: Victor Dodon Date: Sun, 20 Oct 2024 12:21:04 +0300 Subject: [PATCH] Fix some typos --- pkg/client/config.go | 2 +- pkg/efactura/rest.go | 4 ++-- pkg/errors/errors.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/client/config.go b/pkg/client/config.go index 753460b..d48f2e9 100644 --- a/pkg/client/config.go +++ b/pkg/client/config.go @@ -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, diff --git a/pkg/efactura/rest.go b/pkg/efactura/rest.go index 8edb793..6d6eaba 100644 --- a/pkg/efactura/rest.go +++ b/pkg/efactura/rest.go @@ -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) @@ -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) { diff --git a/pkg/errors/errors.go b/pkg/errors/errors.go index 1de8bca..bcc49fb 100644 --- a/pkg/errors/errors.go +++ b/pkg/errors/errors.go @@ -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 }