From 2439ca9c2fc4f406b73579dec6504adaf91a3f1f Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 13 Apr 2024 00:19:22 +0800 Subject: [PATCH] docs: `ui.Line` now supports a string argument --- docs/plugins/layout.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/plugins/layout.md b/docs/plugins/layout.md index 9b1b92bc..4ef26c93 100644 --- a/docs/plugins/layout.md +++ b/docs/plugins/layout.md @@ -131,9 +131,10 @@ Methods (all methods return `self`): ## Line {#line} -Create a line, which accepts a list of [Span](#span) and [Line](#line): +Create a line, which accepts a string, or a list of [Span](#span) and [Line](#line): ```lua +ui.Line("string") ui.Line { span, line, span, ... } ```