Skip to content

Commit

Permalink
fix: rename tuples.go to pair.go and set proper package name
Browse files Browse the repository at this point in the history
Previous commit contains an incorrect package name.

Signed-off-by: Dmitriy Matrenichev <[email protected]>
  • Loading branch information
DmitriyMV committed Sep 22, 2022
1 parent d8d7d25 commit 726e066
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pair/tuples.go → pair/pair.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at http://mozilla.org/MPL/2.0/.

// Package ordered contains ordered Pair and Triple types.
package ordered
// Package pair contains Pair and Triple types.
package pair

// Pair is two element tuple.
type Pair[T1, T2 any] struct {
Expand All @@ -19,7 +19,7 @@ func MakePair[T1, T2 any](v1 T1, v2 T2) Pair[T1, T2] {
}
}

// Triple is three element tuple of ordered values.
// Triple is three element tuple.
type Triple[T1, T2, T3 any] struct {
V1 T1
V2 T2
Expand Down

0 comments on commit 726e066

Please sign in to comment.