Skip to content

Commit

Permalink
Make std.json.Number a copy type
Browse files Browse the repository at this point in the history
This doesn't have a visible impact but better captures the purpose of
the type.
  • Loading branch information
yorickpeterse committed Jan 21, 2025
1 parent bc0863e commit 16a920d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion std/src/std/json.inko
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ impl Equal[ref Json] for Json {
}

# A numeric value that's either an `Int` or a `Float`.
type pub inline enum Number {
type pub copy enum Number {
case Int(Int)
case Float(Float)
}
Expand Down

0 comments on commit 16a920d

Please sign in to comment.