diff --git a/pkg/personname/groupInfo_test.go b/pkg/personname/groupInfo_test.go index 055f609..bf1ee3b 100644 --- a/pkg/personname/groupInfo_test.go +++ b/pkg/personname/groupInfo_test.go @@ -360,7 +360,7 @@ func TestNewPersonNameFromDicom(t *testing.T) { if tc.IsEmpty != parsed.IsEmpty() { t.Errorf( - ".IsEmpty() returned %v, extected %v", + ".IsEmpty() returned %v, expected %v", parsed.IsEmpty(), tc.IsEmpty, ) @@ -387,7 +387,7 @@ func TestGroupInfo_DCM_interiorNullsExceedTrailingLevel(t *testing.T) { } if dcm != "CROUCH^^^^JR" { - t.Errorf("dcm returned uneexpected value: %v", dcm) + t.Errorf("dcm returned unexpected value: %v", dcm) } } diff --git a/pkg/uid/uid.go b/pkg/uid/uid.go index f0eff51..c9a5487 100644 --- a/pkg/uid/uid.go +++ b/pkg/uid/uid.go @@ -43,7 +43,7 @@ func CanonicalTransferSyntaxUID(uid string) (string, error) { } // ParseTransferSyntaxUID parses a transfer syntax uid and returns its byteorder -// and implicitVR/explicitVR type. TrasnferSyntaxUID can be any UID that refers to +// and implicitVR/explicitVR type. TransferSyntaxUID can be any UID that refers to // a transfer syntax. It can be, e.g., 1.2.840.10008.1.2 (it will return // LittleEndian, ImplicitVR) or 1.2.840.10008.1.2.4.54 (it will return // (LittleEndian, ExplicitVR). diff --git a/write.go b/write.go index 1c35171..8556060 100644 --- a/write.go +++ b/write.go @@ -358,7 +358,7 @@ func verifyVROrDefault(t tag.Tag, vr string, opts writeOptSet) (string, error) { // Verify the VR on the way out if the caller wants it. if !opts.skipVRVerification && !slices.Contains(tagInfo.VRs, vr) { - return "", fmt.Errorf("ERROR dicomio.veryifyElement: VR mismatch for tag %v. Element.VR=%v, but DICOM standard defines VR to be %v", + return "", fmt.Errorf("ERROR dicomio.verifyElement: VR mismatch for tag %v. Element.VR=%v, but DICOM standard defines VR to be %v", tag.DebugString(t), vr, tagInfo.VRs) }