This is an automated email from the ASF dual-hosted git repository.

wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-brpc.git


The following commit(s) were added to refs/heads/master by this push:
     new fd6a6da  flat_map: fix code annotation
     new 2839f32  Merge pull request #1721 from ehds/fix-code-annotation
fd6a6da is described below

commit fd6a6da659bbfc5413693d966a9cfacd15ea2a2f
Author: ds <[email protected]>
AuthorDate: Mon Mar 14 22:36:10 2022 +0800

    flat_map: fix code annotation
---
 src/butil/containers/flat_map.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/butil/containers/flat_map.h b/src/butil/containers/flat_map.h
index b22ad78..6f2deaf 100644
--- a/src/butil/containers/flat_map.h
+++ b/src/butil/containers/flat_map.h
@@ -174,10 +174,10 @@ public:
 
     // Remove |key| and the associated value
     // Returns: 1 on erased, 0 otherwise.
-    // Remove all items. Allocated spaces are NOT returned by system.
     template <typename K2>
     size_t erase(const K2& key, mapped_type* old_value = NULL);
 
+    // Remove all items. Allocated spaces are NOT returned by system.
     void clear();
 
     // Remove all items and return all allocated spaces to system.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to