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

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


The following commit(s) were added to refs/heads/master by this push:
     new 72ed3043 Fix typo in string_printf (#2263)
72ed3043 is described below

commit 72ed304311ffec746f85bc80d9fd3e0a7938756f
Author: Bright Chen <chenguangmin...@foxmail.com>
AuthorDate: Tue May 23 23:26:41 2023 +0800

    Fix typo in string_printf (#2263)
---
 src/butil/string_printf.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/butil/string_printf.cpp b/src/butil/string_printf.cpp
index 981420eb..0b5494bf 100644
--- a/src/butil/string_printf.cpp
+++ b/src/butil/string_printf.cpp
@@ -77,7 +77,7 @@ std::string string_printf(const char* format, ...) {
     // of std::string to avoid a double allocation, though it does pad
     // the resulting string with nul bytes.  Our guestimation is twice
     // the format string size, or 32 bytes, whichever is larger.  This
-    // is a hueristic that doesn't affect correctness but attempts to be
+    // is a heuristic that doesn't affect correctness but attempts to be
     // reasonably fast for the most common cases.
     std::string ret;
     ret.reserve(std::max(32UL, strlen(format) * 2));


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to