From ed76e7adc61ecca59e8c7d642964d6e0bc9d3d6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sat, 26 Jul 2014 08:25:10 +0200 Subject: doc: fix examples of function string_format_size (plugin API reference) --- doc/en/weechat_plugin_api.en.asciidoc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'doc/en/weechat_plugin_api.en.asciidoc') 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); ---- -- cgit v1.2.3