diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2016-09-27 07:31:13 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2016-09-27 07:31:13 +0200 |
commit | 47019c3d158890a92a421e481f3aa84b7e26adfb (patch) | |
tree | 387332eb6d24e5343d24778a5400399aaab0b091 /doc/fr | |
parent | f2b74fabc252db934cde376de25f0042a313f084 (diff) | |
download | weechat-47019c3d158890a92a421e481f3aa84b7e26adfb.zip |
doc: fix examples for function string_eval_path_home (plugin API reference)
Diffstat (limited to 'doc/fr')
-rw-r--r-- | doc/fr/weechat_plugin_api.fr.adoc | 4 |
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" ---- |