Skip to content

Commit

Permalink
slice: relax the type constraint on Edit values
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed Feb 19, 2024
1 parent e48281d commit 3661d46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slice/edit.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const (

// Edit is an edit operation transforming specified as part of a diff.
// Each edit refers to a specific span of one of the inputs.
type Edit[T comparable] struct {
type Edit[T any] struct {
Op EditOp // the diff operation to apply at the current offset

// X specifies the elements of lhs affected by the edit.
Expand Down

0 comments on commit 3661d46

Please sign in to comment.