From e3cd2e93d0ee5f3af7f3fe0af86ffad0cf8c7ea8 Mon Sep 17 00:00:00 2001 From: Daniel Kongsgaard Date: Sun, 3 Dec 2023 19:26:00 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Wez Furlong --- docs/config/lua/wezterm/to_string.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/config/lua/wezterm/to_string.md b/docs/config/lua/wezterm/to_string.md index e1cbc31d7..31bd6f579 100644 --- a/docs/config/lua/wezterm/to_string.md +++ b/docs/config/lua/wezterm/to_string.md @@ -10,6 +10,14 @@ tags: This function returns a string representation of any Lua value. In particular this can be used to get a string representation of a table or userdata. +The intended purpose is as a human readable way to inspect lua values. It is not machine +readable; do not attempt to use it as a serialization format as the format is not guaranteed +to remain the same across different versions of wezterm. + +This same representation is used in the [debug overlay](../keyassignment/ShowDebugOverlay.md +when printing the result of an expression from the Lua REPL and for the implicit string +conversions of the parameters passed to [wezterm.log_info](log_info.md). + ```lua local wezterm = require 'wezterm' assert(wezterm.to_string { 1, 2 } == [=[[