Skip to content

Commit

Permalink
Fix Herz typo
Browse files Browse the repository at this point in the history
  • Loading branch information
SanderMertens committed Nov 30, 2022
1 parent 26031d3 commit c4e74d9
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion flecs.c
Original file line number Diff line number Diff line change
Expand Up @@ -31348,7 +31348,7 @@ void FlecsUnitsImport(
prev_scope = ecs_set_scope(world, EcsFrequency);

EcsHerz = ecs_unit_init(world, &(ecs_unit_desc_t){
.entity = ecs_entity(world, { .name = "Herz" }),
.entity = ecs_entity(world, { .name = "Hertz" }),
.quantity = EcsFrequency,
.symbol = "Hz" });
ecs_primitive_init(world, &(ecs_primitive_desc_t){
Expand Down
6 changes: 3 additions & 3 deletions flecs.h
Original file line number Diff line number Diff line change
Expand Up @@ -15724,7 +15724,7 @@ struct GigaBytesPerSecond { };
};

struct frequency {
struct Herz { };
struct Hertz { };
struct KiloHerz { };
struct MegaHerz { };
struct GigaHerz { };
Expand Down Expand Up @@ -25265,8 +25265,8 @@ inline units::units(flecs::world& world) {
"::flecs::units::DataRate::GigaBytesPerSecond");

// Initialize datarate units
world.entity<frequency::Herz>(
"::flecs::units::Frequency::Herz");
world.entity<frequency::Hertz>(
"::flecs::units::Frequency::Hertz");
world.entity<frequency::KiloHerz>(
"::flecs::units::Frequency::KiloHerz");
world.entity<frequency::MegaHerz>(
Expand Down
2 changes: 1 addition & 1 deletion include/flecs/addons/cpp/mixins/units/decl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ struct GigaBytesPerSecond { };
};

struct frequency {
struct Herz { };
struct Hertz { };
struct KiloHerz { };
struct MegaHerz { };
struct GigaHerz { };
Expand Down
4 changes: 2 additions & 2 deletions include/flecs/addons/cpp/mixins/units/impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ inline units::units(flecs::world& world) {
"::flecs::units::DataRate::GigaBytesPerSecond");

// Initialize datarate units
world.entity<frequency::Herz>(
"::flecs::units::Frequency::Herz");
world.entity<frequency::Hertz>(
"::flecs::units::Frequency::Hertz");
world.entity<frequency::KiloHerz>(
"::flecs::units::Frequency::KiloHerz");
world.entity<frequency::MegaHerz>(
Expand Down
2 changes: 1 addition & 1 deletion src/addons/units.c
Original file line number Diff line number Diff line change
Expand Up @@ -945,7 +945,7 @@ void FlecsUnitsImport(
prev_scope = ecs_set_scope(world, EcsFrequency);

EcsHerz = ecs_unit_init(world, &(ecs_unit_desc_t){
.entity = ecs_entity(world, { .name = "Herz" }),
.entity = ecs_entity(world, { .name = "Hertz" }),
.quantity = EcsFrequency,
.symbol = "Hz" });
ecs_primitive_init(world, &(ecs_primitive_desc_t){
Expand Down

0 comments on commit c4e74d9

Please sign in to comment.