Skip to content

Commit fcc8802

Browse files
authored
[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.
1 parent c5cb3f5 commit fcc8802

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/docs/GetElementPtr.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ same. For example, when we write, in "C":
4141
4242
it is natural to think that there is only one index, the selection of the field
4343
``F``. However, in this example, ``Foo`` is a pointer. That pointer
44-
must be indexed explicitly in LLVM. C, on the other hand, indices through it
44+
must be indexed explicitly in LLVM. C, on the other hand, indexes through it
4545
transparently. To arrive at the same address location as the C code, you would
4646
provide the GEP instruction with two index operands. The first operand indexes
4747
through the pointer; the second operand indexes the field ``F`` of the

0 commit comments

Comments
 (0)