summaryrefslogtreecommitdiff
path: root/doc/en
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2016-09-27 07:31:13 +0200
committerSébastien Helleu <flashcode@flashtux.org>2016-09-27 07:31:13 +0200
commit47019c3d158890a92a421e481f3aa84b7e26adfb (patch)
tree387332eb6d24e5343d24778a5400399aaab0b091 /doc/en
parentf2b74fabc252db934cde376de25f0042a313f084 (diff)
downloadweechat-47019c3d158890a92a421e481f3aa84b7e26adfb.zip
doc: fix examples for function string_eval_path_home (plugin API reference)
Diffstat (limited to 'doc/en')
-rw-r--r--doc/en/weechat_plugin_api.en.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/en/weechat_plugin_api.en.adoc b/doc/en/weechat_plugin_api.en.adoc
index d20976177..0765f04ac 100644
--- a/doc/en/weechat_plugin_api.en.adoc
+++ b/doc/en/weechat_plugin_api.en.adoc
@@ -962,7 +962,7 @@ C example:
[source,C]
----
-char *str = weechat_string_expand_home ("%h/test");
+char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
@@ -976,7 +976,7 @@ Script (Python):
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# example
-path = weechat.string_eval_path_home("%h/test", "", "", "")
+path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----