fixed comments

This commit is contained in:
Michele Caini
2018-05-04 15:43:14 +02:00
parent 1102d63469
commit 2ec9043cf2
2 changed files with 3 additions and 3 deletions

View File

@@ -574,7 +574,7 @@ public:
* Syntactic sugar for the following snippet:
*
* @code{.cpp}
* has<Tag>() && attachee<Tag>() == entity
* registry.has<Tag>() && registry.attachee<Tag>() == entity
* @endcode
*
* @tparam Tag Type of tag for which to perform the check.

View File

@@ -275,7 +275,7 @@ public:
*/
bool has(entity_type entity) const ENTT_NOEXCEPT {
const auto pos = size_type(entity & traits_type::entity_mask);
// the in-use control bit permits to avoid accessing the direct vector
// testing against pending permits to avoid accessing the direct vector
return (pos < reverse.size()) && (reverse[pos] != pending);
}
@@ -299,7 +299,7 @@ public:
bool fast(entity_type entity) const ENTT_NOEXCEPT {
const auto pos = size_type(entity & traits_type::entity_mask);
assert(pos < reverse.size());
// the in-use control bit permits to avoid accessing the direct vector
// testing against pending permits to avoid accessing the direct vector
return (reverse[pos] != pending);
}