[FormatVariadic] Mark index as required in docstring
authorDave Lee <davelee.com@gmail.com>
Wed, 2 Feb 2022 18:45:19 +0000 (10:45 -0800)
committerDave Lee <davelee.com@gmail.com>
Wed, 23 Feb 2022 23:33:36 +0000 (15:33 -0800)
commit948d69fd574fbbbc311d06c5c4481408ef4e384d
treec7d8860f2fcd09be4eb45a5e0144e2edb0a7c438
parent18fa0b15ccf610f34af1231440f89d20cb99e7a0
[FormatVariadic] Mark index as required in docstring

After looking at the formatv docstring, I thought the index was optional (as it
is in other languages). This changes the header docs to show `index` instead of
`[index]`, to indicate that it is required.

Differential Revision: https://reviews.llvm.org/D118833
llvm/include/llvm/Support/FormatVariadic.h