summaryrefslogtreecommitdiff
path: root/doc/en/weechat_plugin_api.en.asciidoc
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2014-07-26 08:25:10 +0200
committerSébastien Helleu <flashcode@flashtux.org>2014-07-26 08:25:10 +0200
commited76e7adc61ecca59e8c7d642964d6e0bc9d3d6d (patch)
tree4048758e326d592c4e34d2bd39c18768dc565ec0 /doc/en/weechat_plugin_api.en.asciidoc
parent0693ffb82b870813970292c6f4e449eba2ab90b8 (diff)
downloadweechat-ed76e7adc61ecca59e8c7d642964d6e0bc9d3d6d.zip
doc: fix examples of function string_format_size (plugin API reference)
Diffstat (limited to 'doc/en/weechat_plugin_api.en.asciidoc')
-rw-r--r--doc/en/weechat_plugin_api.en.asciidoc10
1 files changed, 7 insertions, 3 deletions
diff --git a/doc/en/weechat_plugin_api.en.asciidoc b/doc/en/weechat_plugin_api.en.asciidoc
index d8210cdb0..94ad92e0d 100644
--- a/doc/en/weechat_plugin_api.en.asciidoc
+++ b/doc/en/weechat_plugin_api.en.asciidoc
@@ -1598,7 +1598,11 @@ C examples:
----
/* examples with English locale */
-char *str = weechat_string_format_size (0); /* str == "0 byte" */
+char *str = weechat_string_format_size (0); /* str == "0 bytes" */
+/* ... */
+free (str);
+
+char *str = weechat_string_format_size (1); /* str == "1 byte" */
/* ... */
free (str);
@@ -1606,11 +1610,11 @@ char *str = weechat_string_format_size (200); /* str == "200 bytes" */
/* ... */
free (str);
-char *str = weechat_string_format_size (1536); /* str == "1.5 KB" */
+char *str = weechat_string_format_size (15200); /* str == "15.2 KB" */
/* ... */
free (str);
-char *str = weechat_string_format_size (2097152); /* str == "2 MB" */
+char *str = weechat_string_format_size (2097152); /* str == "2.10 MB" */
/* ... */
free (str);
----