Skip to content

Commit

Permalink
Merge dev (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
huykingsofm authored Dec 17, 2024
2 parents 99fe912 + e5dbef1 commit 062d5b9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,10 @@ func init() {

## ⭐ WrapEnum

`WrapEnum` offers a set of built-in methods to simplify working with `int64` enums.
`WrapEnum` offers a set of built-in methods to simplify working with `int` enums.

> [!TIP]
> For other numeric types, use `WrapUintEnum` for `uint64` and `WrapFloatEnum` for `float64`.
> For other numeric types, use `WrapUintEnum` for `uint` and `WrapFloatEnum` for `float64`.
**Pros 💪**
- Supports constant values ([#][5]).
Expand Down
4 changes: 2 additions & 2 deletions wrap_int_enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import (
"github.com/xybor-x/enum/internal/mtmap"
)

// WrapEnum provides a set of built-in methods to simplify working with int64
// WrapEnum provides a set of built-in methods to simplify working with int
// enums.
type WrapEnum[underlyingEnum any] int64
type WrapEnum[underlyingEnum any] int

func (e WrapEnum[underlyingEnum]) IsValid() bool {
return IsValid(e)
Expand Down
6 changes: 3 additions & 3 deletions wrap_uint_enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/xybor-x/enum/internal/core"
)

// WrapUintEnum provides a set of built-in methods to simplify working with
// uint64 enums.
type WrapUintEnum[underlyingEnum any] uint64
// WrapUintEnum provides a set of built-in methods to simplify working with uint
// enums.
type WrapUintEnum[underlyingEnum any] uint

func (e WrapUintEnum[underlyingEnum]) IsValid() bool {
return IsValid(e)
Expand Down

0 comments on commit 062d5b9

Please sign in to comment.