mirror of
https://github.com/weechat/weechat.git
synced 2026-06-23 19:36:37 +02:00
doc: fix typo in example for function string_eval_expression (plugin API reference)
This commit is contained in:
@@ -1702,9 +1702,9 @@ Script (Python):
|
||||
str = weechat.string_eval_expression(expr, pointers, extra_vars)
|
||||
|
||||
# examples
|
||||
str1 = weechat.string_input_for_buffer("${buffer.full_name}", {}, {}) # "core.weechat"
|
||||
str2 = weechat.string_input_for_buffer("${window.win_width} > 100", {}, {}) # "1"
|
||||
str3 = weechat.string_input_for_buffer("abc =~ def", {}, {}) # "0"
|
||||
str1 = weechat.string_eval_expression("${buffer.full_name}", {}, {}) # "core.weechat"
|
||||
str2 = weechat.string_eval_expression("${window.win_width} > 100", {}, {}) # "1"
|
||||
str3 = weechat.string_eval_expression("abc =~ def", {}, {}) # "0"
|
||||
----------------------------------------
|
||||
|
||||
[[utf-8]]
|
||||
|
||||
@@ -1727,9 +1727,9 @@ Script (Python) :
|
||||
str = weechat.string_eval_expression(expr, pointers, extra_vars)
|
||||
|
||||
# exemples
|
||||
str1 = weechat.string_input_for_buffer("${buffer.full_name}", {}, {}) # "core.weechat"
|
||||
str2 = weechat.string_input_for_buffer("${window.win_width} > 100", {}, {}) # "1"
|
||||
str3 = weechat.string_input_for_buffer("abc =~ def", {}, {}) # "0"
|
||||
str1 = weechat.string_eval_expression("${buffer.full_name}", {}, {}) # "core.weechat"
|
||||
str2 = weechat.string_eval_expression("${window.win_width} > 100", {}, {}) # "1"
|
||||
str3 = weechat.string_eval_expression("abc =~ def", {}, {}) # "0"
|
||||
----------------------------------------
|
||||
|
||||
[[utf-8]]
|
||||
|
||||
@@ -1686,9 +1686,9 @@ Script (Python):
|
||||
str = weechat.string_eval_expression(expr, pointers, extra_vars)
|
||||
|
||||
# esempi
|
||||
str1 = weechat.string_input_for_buffer("${buffer.full_name}", {}, {}) # "core.weechat"
|
||||
str2 = weechat.string_input_for_buffer("${window.win_width} > 100", {}, {}) # "1"
|
||||
str3 = weechat.string_input_for_buffer("abc =~ def", {}, {}) # "0"
|
||||
str1 = weechat.string_eval_expression("${buffer.full_name}", {}, {}) # "core.weechat"
|
||||
str2 = weechat.string_eval_expression("${window.win_width} > 100", {}, {}) # "1"
|
||||
str3 = weechat.string_eval_expression("abc =~ def", {}, {}) # "0"
|
||||
----------------------------------------
|
||||
|
||||
[[utf-8]]
|
||||
|
||||
Reference in New Issue
Block a user