From 17f677f6913b1b722e2b3936cd9624a8694eac0f Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Fri, 14 Nov 2025 18:56:15 +0000 Subject: [PATCH] [docs] Fix invalid header length in llvm-ir2vec.rst This also improves the error message to be more clear for folks who haven't used a lot of rst. --- llvm/docs/CommandGuide/llvm-ir2vec.rst | 2 +- llvm/docs/conf.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/llvm/docs/CommandGuide/llvm-ir2vec.rst b/llvm/docs/CommandGuide/llvm-ir2vec.rst index f51da065b43d8..6014df941147e 100644 --- a/llvm/docs/CommandGuide/llvm-ir2vec.rst +++ b/llvm/docs/CommandGuide/llvm-ir2vec.rst @@ -1,5 +1,5 @@ llvm-ir2vec - IR2Vec and MIR2Vec Embedding Generation Tool -=========================================================== +========================================================== .. program:: llvm-ir2vec diff --git a/llvm/docs/conf.py b/llvm/docs/conf.py index d9fa6961032b4..29b1024ff482e 100644 --- a/llvm/docs/conf.py +++ b/llvm/docs/conf.py @@ -273,7 +273,8 @@ def process_rst(name): if len(header) != len(title): print( - "error: invalid header in %r (does not match title)" % file_subpath, + "error: invalid header length in %r (does not match length of title)" + % file_subpath, file=sys.stderr, ) if " - " not in title: