[llvm] 72de0e4 - [TableGen][Docs] Fix empty list syntax in TableGen doc. (#145041)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 09:07:37 PDT 2025
Author: Chenguang Wang
Date: 2025-06-20T09:07:35-07:00
New Revision: 72de0e45846bab293a0b07e5aeda65a5e6590a87
URL: https://github.com/llvm/llvm-project/commit/72de0e45846bab293a0b07e5aeda65a5e6590a87
DIFF: https://github.com/llvm/llvm-project/commit/72de0e45846bab293a0b07e5aeda65a5e6590a87.diff
LOG: [TableGen][Docs] Fix empty list syntax in TableGen doc. (#145041)
`[]<list<int>>` actually produces `list<list<int>>`.
Added:
Modified:
llvm/docs/TableGen/ProgRef.rst
Removed:
################################################################################
diff --git a/llvm/docs/TableGen/ProgRef.rst b/llvm/docs/TableGen/ProgRef.rst
index fe0564d2990df..7b30698ce4fd6 100644
--- a/llvm/docs/TableGen/ProgRef.rst
+++ b/llvm/docs/TableGen/ProgRef.rst
@@ -1915,7 +1915,7 @@ and non-0 as true.
``list<int>``. *start* is ``0`` and *step* is ``1`` by default. *step* can
be negative and cannot be 0. If *start* ``<`` *end* and *step* is negative,
or *start* ``>`` *end* and *step* is positive, the result is an empty list
- ``[]<list<int>>``.
+ ``[]<int>``.
For example:
More information about the llvm-commits
mailing list