Skip to content

Commit 0bdbf2c

Browse files
authored
[docs] Fix invalid header length in llvm-ir2vec.rst (#168104)
This also improves the error message to be more clear for folks who haven't used a lot of rst.
1 parent 9fcb675 commit 0bdbf2c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

llvm/docs/CommandGuide/llvm-ir2vec.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
llvm-ir2vec - IR2Vec and MIR2Vec Embedding Generation Tool
2-
===========================================================
2+
==========================================================
33

44
.. program:: llvm-ir2vec
55

llvm/docs/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,8 @@ def process_rst(name):
273273

274274
if len(header) != len(title):
275275
print(
276-
"error: invalid header in %r (does not match title)" % file_subpath,
276+
"error: invalid header length in %r (does not match length of title)"
277+
% file_subpath,
277278
file=sys.stderr,
278279
)
279280
if " - " not in title:

0 commit comments

Comments
 (0)