Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Provide more understandable example for string indexers #1112

Open
hdodov opened this issue Oct 1, 2019 · 0 comments
Open

Provide more understandable example for string indexers #1112

hdodov opened this issue Oct 1, 2019 · 0 comments

Comments

@hdodov
Copy link

hdodov commented Oct 1, 2019

There was a misunderstanding about string indexers on Stack Overflow.

The docs should compare obj.property with obj[someValue] instead of obj["property"] to better illustrate why property types should match the indexer return type.

Please, take a look at the question linked above and the answer for more information.

@hdodov hdodov changed the title Provide better example for string indexers Provide more understandable example for string indexers Oct 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant