Skip to content

Commit

Permalink
Merge pull request #1352 from yanjianglu/master
Browse files Browse the repository at this point in the history
Update flat_map.h
  • Loading branch information
jamesge authored Jun 16, 2021
2 parents b57dd31 + 99338e6 commit 0650582
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/butil/containers/flat_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ class FlatMap {
{ new (element_spaces) Element(other.element()); }
bool is_valid() const { return next != (const Bucket*)-1UL; }
void set_invalid() { next = (Bucket*)-1UL; }
// NOTE: Only be called when in_valid() is true.
// NOTE: Only be called when is_valid() is true.
Element& element() {
void* spaces = element_spaces; // Suppress strict-aliasing
return *reinterpret_cast<Element*>(spaces);
Expand Down

0 comments on commit 0650582

Please sign in to comment.