Skip to content

Commit

Permalink
Fix typo: capabilites -> capabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
chfast committed Oct 18, 2018
1 parent ebccd23 commit 182006b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions examples/example_vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static void destroy(struct evmc_instance* vm)
free(vm);
}

/// The example implementation of the evmc_instance::get_capabilites() method.
/// The example implementation of the evmc_instance::get_capabilities() method.
static evmc_capabilities_flagset get_capabilities(struct evmc_instance* vm)
{
(void)vm;
Expand Down Expand Up @@ -174,7 +174,7 @@ struct evmc_instance* evmc_create_example_vm()
.version = STR(PROJECT_VERSION),
.destroy = destroy,
.execute = execute,
.get_capabilites = get_capabilities,
.get_capabilities = get_capabilities,
.set_option = set_option,
.set_tracer = set_tracer,
};
Expand Down
2 changes: 1 addition & 1 deletion include/evmc/evmc.h
Original file line number Diff line number Diff line change
Expand Up @@ -876,7 +876,7 @@ struct evmc_instance
* A Client SHOULD only rely on the value returned here if it has queried it after
* it has called set_option.
*/
evmc_get_capabilities_fn get_capabilites;
evmc_get_capabilities_fn get_capabilities;

/**
* Optional pointer to function setting the EVM instruction tracer.
Expand Down
2 changes: 1 addition & 1 deletion include/evmc/helpers.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ static inline const char* evmc_vm_version(struct evmc_instance* instance)
static inline bool evmc_vm_has_capability(struct evmc_instance* vm,
enum evmc_capabilities capability)
{
return (vm->get_capabilites(vm) & (evmc_capabilities_flagset)capability) != 0;
return (vm->get_capabilities(vm) & (evmc_capabilities_flagset)capability) != 0;
}

/**
Expand Down

0 comments on commit 182006b

Please sign in to comment.