summaryrefslogtreecommitdiff
path: root/doc/it/weechat_plugin_api.it.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'doc/it/weechat_plugin_api.it.asciidoc')
-rw-r--r--doc/it/weechat_plugin_api.it.asciidoc8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/it/weechat_plugin_api.it.asciidoc b/doc/it/weechat_plugin_api.it.asciidoc
index 0acfa2424..25b34f5f7 100644
--- a/doc/it/weechat_plugin_api.it.asciidoc
+++ b/doc/it/weechat_plugin_api.it.asciidoc
@@ -998,8 +998,8 @@ Esempio in C:
[source,C]
----
-char *str = weechat_string_expand_home ("%h/test/file.txt");
-/* result: "/home/xxx/.weechat/test/file.txt" */
+char *str = weechat_string_expand_home ("%h/test");
+/* result: "/home/xxx/.weechat/test" */
/* ... */
free (str);
----
@@ -1012,8 +1012,8 @@ Script (Python):
path = weechat.string_eval_path_home(path, pointers, extra_vars, options)
# esempio
-path = weechat.string_eval_path_home("%h/test/file.txt", "", "", "")
-# path == "/home/xxx/.weechat/test/file.txt"
+path = weechat.string_eval_path_home("%h/test", "", "", "")
+# path == "/home/xxx/.weechat/test"
----
==== string_remove_quotes