Be more precise with the word ‘element’

This commit is contained in:
Ryan Hendrickson 2024-07-14 19:08:24 -04:00 committed by GitHub
parent be069a8da2
commit 07d2247f62
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,7 +3,7 @@ feature: list-index-syntax
start-date: 2024-07-14
author: rhendric
co-authors:
shepherd-team: @infinisil
shepherd-team: infinisil
shepherd-leader:
related-issues: https://github.com/NixOS/nix/issues/10949, https://github.com/NixOS/rfcs/pull/137
---
@ -11,7 +11,7 @@ related-issues: https://github.com/NixOS/nix/issues/10949, https://github.com/Ni
# Summary
[summary]: #summary
This proposal extends the attrpath syntax to include `'[' INT ']'` elements that refer to values in lists.
This proposal extends the attrpath syntax to include `'[' INT ']'` components that refer to elements in lists.
This would enable expressions such as the following:
```nix