[help] fix a help text issue

pull/111/merge
Timothy Stack 7 years ago
parent 4cedde9a43
commit 5016ea9e71

@ -364,7 +364,7 @@ public:
static inline attr_line_t from_ansi_str(const char *str) { static inline attr_line_t from_ansi_str(const char *str) {
attr_line_t retval; attr_line_t retval;
return retval.with_ansi_string(str); return retval.with_ansi_string("%s", str);
}; };
/** @return The string itself. */ /** @return The string itself. */

@ -1262,7 +1262,7 @@ Example
Synopsis Synopsis
like(pattern, str, escape) -- Match a string against a pattern like(pattern, str, escape) -- Match a string against a pattern
Parameters Parameters
pattern The pattern to match. A percent symbol () will match zero or more pattern The pattern to match. A percent symbol (%) will match zero or more
characters and an underscore (_) will match a single character. characters and an underscore (_) will match a single character.
str The string to match str The string to match
escape The escape character that can be used to prefix a literal percent escape The escape character that can be used to prefix a literal percent
@ -1382,7 +1382,7 @@ Examples
Synopsis Synopsis
printf(format, X) -- Returns a string with this functions arguments printf(format, X) -- Returns a string with this functions arguments
substituted into the given format. Substitution points are specified using substituted into the given format. Substitution points are specified using
percent () options, much like the standard C printf() function. percent (%) options, much like the standard C printf() function.
Parameters Parameters
format The format of the string to return. format The format of the string to return.
X The argument to substitute at a given position in the format. X The argument to substitute at a given position in the format.

Loading…
Cancel
Save