Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
arvvoid committed Sep 25, 2024
1 parent 33d5bb8 commit 62231c3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions ciscert_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const expectedDemoSerial = "325450325973957308031939306065516468253"
// Expected serial number of the embedded CIS production certificate currently in use
const expectedProdSerial = "313300731601639444557048129613010882577"

// Test embeded CIS demo certificate
// Test embedded CIS demo certificate
func TestParseAndVerifyEmbeddedCertsDemo(t *testing.T) {
t.Logf("Testing embedded CIS demo certificate...")

Expand All @@ -35,7 +35,7 @@ func TestParseAndVerifyEmbeddedCertsDemo(t *testing.T) {
}
}

// Test embeded CIS production certificate
// Test embedded CIS production certificate
func TestParseAndVerifyEmbeddedCertsProd(t *testing.T) {
t.Logf("Testing embedded CIS production certificate...")

Expand Down
2 changes: 1 addition & 1 deletion etreeutils/sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (a SortedAttrs) Less(i, j int) bool {
}

// Next, namespace prefix declarations, sorted by prefix, come before
// anythign else.
// anything else.
if a[i].Space == xmlnsPrefix {
if a[j].Space == xmlnsPrefix {
return a[i].Key < a[j].Key
Expand Down
4 changes: 2 additions & 2 deletions etreeutils/unmarshal.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ import (
// v using encoding/xml in the context of the passed NSContext. If v implements
// ElementKeeper, SetUnderlyingElement will be called on v with a reference to el.
func NSUnmarshalElement(ctx NSContext, el *etree.Element, v interface{}) error {
detatched, err := NSDetatch(ctx, el)
detached, err := NSDetatch(ctx, el)
if err != nil {
return err
}

doc := etree.NewDocument()
doc.AddChild(detatched)
doc.AddChild(detached)
data, err := doc.WriteToBytes()
if err != nil {
return err
Expand Down
4 changes: 2 additions & 2 deletions fiskalhr.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,9 +329,9 @@ func (fe *FiskalEntity) PingCIS() error {
// (any business logic and math is the responsibility of the invoicing application using the library)
// PLEASE NOTE: the CIS also don't do any extensive validation of the invoice, only basic checks.
// so you could get a JIR back even if the invoice is not correct.
// But if you do that you can have problems later with inspecions or periodic CIS checks of the data.
// But if you do that you can have problems later with inspections or periodic CIS checks of the data.
// The library will send the data as is to the CIS.
// So please validate and chek the invoice data acording to you buinies logic
// So please validate and chek the invoice data according to you business logic
// before sending it to the CIS.
// 2. Sends the XML request to the CIS and receives the response.
// 3. Unmarshals the response XML to extract the response data.
Expand Down

0 comments on commit 62231c3

Please sign in to comment.