diff options
author | Yegappan Lakshmanan <yegappan@yahoo.com> | 2024-03-31 18:45:35 +0200 |
---|---|---|
committer | Christian Brabandt <cb@256bit.org> | 2024-03-31 18:45:35 +0200 |
commit | 3cf121ed31f7a022e2ae6585391434d9c88e9792 (patch) | |
tree | 01acd88732929577e53b138a1f251e6a971dac43 /runtime/doc/builtin.txt | |
parent | 5df961a1bc5ed14d0b5aa04ef59e9079313c268d (diff) |
patch 9.1.0233: Vim9: string() output of enum is problematicv9.1.0233
Problem: Vim9: string() output of enum is problematic
Solution: Make string() output for an enum consistent with that of a
regular object (Yegappan Lakshmanan).
closes: #14343
Signed-off-by: Yegappan Lakshmanan <yegappan@yahoo.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
Diffstat (limited to 'runtime/doc/builtin.txt')
-rw-r--r-- | runtime/doc/builtin.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/doc/builtin.txt b/runtime/doc/builtin.txt index 9e57a8cc4a..088daa75a3 100644 --- a/runtime/doc/builtin.txt +++ b/runtime/doc/builtin.txt @@ -9599,7 +9599,7 @@ string({expr}) Return {expr} converted to a String. If {expr} is a Number, Class class SomeName Object object of SomeName {lnum: 1, col: 3} Enum enum EnumName - EnumValue enum.value + EnumValue enum name.value {name: str, ordinal: nr} When a |List| or |Dictionary| has a recursive reference it is replaced by "[...]" or "{...}". Using eval() on the result |