From fcc88021334d7ee904e891a9b7b29b07afd609d0 Mon Sep 17 00:00:00 2001 From: Omar Hossam Date: Thu, 27 Feb 2025 10:21:56 +0100 Subject: [PATCH] [Docs] Fix typo in GetElementPtr.rst (#127393) I couldn't find the verb "indices", and it was actually a bit confusing for me reading this. I think this should be "indexes" instead. --- llvm/docs/GetElementPtr.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/docs/GetElementPtr.rst b/llvm/docs/GetElementPtr.rst index 9ba6218fadfb..25a24c640309 100644 --- a/llvm/docs/GetElementPtr.rst +++ b/llvm/docs/GetElementPtr.rst @@ -41,7 +41,7 @@ same. For example, when we write, in "C": it is natural to think that there is only one index, the selection of the field ``F``. However, in this example, ``Foo`` is a pointer. That pointer -must be indexed explicitly in LLVM. C, on the other hand, indices through it +must be indexed explicitly in LLVM. C, on the other hand, indexes through it transparently. To arrive at the same address location as the C code, you would provide the GEP instruction with two index operands. The first operand indexes through the pointer; the second operand indexes the field ``F`` of the