diff --git a/element.go b/element.go index b335d02..03f67fc 100644 --- a/element.go +++ b/element.go @@ -59,7 +59,7 @@ func (e *Element) String() string { // Value represents a DICOM value. The underlying data that a Value stores can be determined by inspecting its // ValueType. DICOM values typically can be one of many types (ints, strings, bytes, sequences of other elements, etc), -// so this Value interface attempts to represent this as canoically as possible in Golang (since generics do not exist +// so this Value interface attempts to represent this as canonically as possible in Golang (since generics do not exist // yet). // // Value is JSON serializable out of the box (implements json.Marshaler). diff --git a/pkg/frame/native.go b/pkg/frame/native.go index 04acff8..4b7a2c2 100644 --- a/pkg/frame/native.go +++ b/pkg/frame/native.go @@ -12,7 +12,7 @@ import ( var ErrUnsupportedSamplesPerPixel = errors.New("unsupported samples per pixel") // INativeFrame is an interface representation of NativeFrame[I]'s capabilities, -// and offers a way to use a NativeFrame _without_ requiring propogation of +// and offers a way to use a NativeFrame _without_ requiring propagation of // type parameters. This allows for some more ergonomic signatures, though // NativeFrame[I] can be used directly as well for those who prefer it. type INativeFrame interface { diff --git a/read_test.go b/read_test.go index 04e5b12..ef8f869 100644 --- a/read_test.go +++ b/read_test.go @@ -751,7 +751,7 @@ func TestReadHeader_TryAllowErrorMetaElementGroupLength(t *testing.T) { t.Run("NoFileMetaInformationGroupLength", func(t *testing.T) { dcmheaderNoInfoGrpLen, err := headerWithNoFileMetaInformationGroupLength() if err != nil { - t.Fatalf("unsuccesful generation of fake header data") + t.Fatalf("unsuccessful generation of fake header data") } else { r := &reader{ rawReader: dicomio.NewReader(bufio.NewReader(dcmheaderNoInfoGrpLen.HeaderBytes), binary.LittleEndian, int64(dcmheaderNoInfoGrpLen.HeaderBytes.Len())), @@ -772,7 +772,7 @@ func TestReadHeader_TryAllowErrorMetaElementGroupLength(t *testing.T) { t.Run("WithFileMetaInformationGroupLength", func(t *testing.T) { dcmHeaderInfoGrpLen, err := headerWithFileMetaInformationGroupLength() if err != nil { - t.Fatalf("unsuccesful generation of fake header data with FileMetaInformationGroupLength") + t.Fatalf("unsuccessful generation of fake header data with FileMetaInformationGroupLength") } else { r := &reader{ rawReader: dicomio.NewReader(bufio.NewReader(dcmHeaderInfoGrpLen.HeaderBytes), binary.LittleEndian, int64(dcmHeaderInfoGrpLen.HeaderBytes.Len())), @@ -781,7 +781,7 @@ func TestReadHeader_TryAllowErrorMetaElementGroupLength(t *testing.T) { r.rawReader.SetTransferSyntax(binary.LittleEndian, true) wantElements, err := r.readHeader() if err != nil { - t.Errorf("unsuccesful readHeader when parse option %v is turned on and header has no MetaElementGroupLength tag", opts.allowMissingMetaElementGroupLength) + t.Errorf("unsuccessful readHeader when parse option %v is turned on and header has no MetaElementGroupLength tag", opts.allowMissingMetaElementGroupLength) } // Ensure dataset read from readHeader and the test header are the same except for the ValueLength field. if diff := cmp.Diff(wantElements, dcmHeaderInfoGrpLen.Elements, cmp.AllowUnexported(allValues...), cmpopts.IgnoreFields(Element{}, "ValueLength")); diff != "" {