summaryrefslogtreecommitdiff
path: root/doc/fr/weechat_plugin_api.fr.adoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/fr/weechat_plugin_api.fr.adoc')
-rw-r--r--doc/fr/weechat_plugin_api.fr.adoc4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/fr/weechat_plugin_api.fr.adoc b/doc/fr/weechat_plugin_api.fr.adoc
index 01ae64f85..4b9dedc45 100644
--- a/doc/fr/weechat_plugin_api.fr.adoc
+++ b/doc/fr/weechat_plugin_api.fr.adoc
@@ -974,7 +974,7 @@ Exemple en C :
[source,C]
----
-char *str = weechat_string_expand_home ("%h/test");
+char *str = weechat_string_eval_path_home ("%h/test", NULL, NULL, NULL);
/* résultat : "/home/xxx/.weechat/test" */
/* ... */
free (str);
@@ -988,7 +988,7 @@ Script (Python) :
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# exemple
-path = weechat.string_eval_path_home("%h/test", "", "", "")
+path = weechat.string_eval_path_home("%h/test", {}, {}, {})
# path == "/home/xxx/.weechat/test"
----