You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by yu...@apache.org on 2021/09/24 09:39:26 UTC

[rocketmq] branch develop updated: fix document mistake (#3303)

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

yuzhou pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 9013cc5  fix document mistake (#3303)
9013cc5 is described below

commit 9013cc5f646c079cd63df325054e85b89ed7616a
Author: Silverados <29...@qq.com>
AuthorDate: Fri Sep 24 17:39:17 2021 +0800

    fix document mistake (#3303)
    
    fix message.getBody().length() -->  message.getBody().length
---
 docs/cn/RocketMQ_Example.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/cn/RocketMQ_Example.md b/docs/cn/RocketMQ_Example.md
index bd0fc80..e26bcdf 100644
--- a/docs/cn/RocketMQ_Example.md
+++ b/docs/cn/RocketMQ_Example.md
@@ -572,7 +572,7 @@ public class ListSplitter implements Iterator<List<Message>> {
         return currIndex; 
     }
     private int calcMessageSize(Message message) {
-        int tmpSize = message.getTopic().length() + message.getBody().length(); 
+        int tmpSize = message.getTopic().length() + message.getBody().length; 
         Map<String, String> properties = message.getProperties();
         for (Map.Entry<String, String> entry : properties.entrySet()) {
             tmpSize += entry.getKey().length() + entry.getValue().length();