Skip to content

Commit

Permalink
Fix typos not found by codespell
Browse files Browse the repository at this point in the history
  • Loading branch information
DimitriPapadopoulos committed Sep 2, 2024
1 parent d2a8560 commit 4d909bc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/personname/groupInfo_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)
Expand All @@ -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)
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/uid/uid.go
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion write.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 4d909bc

Please sign in to comment.