Skip to content

Commit 5d5304e

Browse files
committed
Clarify that tools don't *have* to be looking for these definitions
1 parent 632d8c9 commit 5d5304e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

text/3373-avoid-nonlocal-definitions-in-fns.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,16 @@ methods or traits that are visible outside the function.
1313
[motivation]: #motivation
1414

1515
Currently, tools cross-referencing uses and definitions (such as IDEs) must
16-
search inside all function bodies to find potential definitions corresponding
17-
to uses within a function.
16+
either search inside all function bodies to find potential definitions
17+
corresponding to uses within a function, or not cross-reference those
18+
definitions at all.
1819

1920
Humans cross-referencing such uses and definitions may find themselves
2021
similarly baffled.
2122

2223
With this change, both humans and tools can limit the scope of their search and
23-
avoid looking for definitions inside other functions.
24+
avoid looking for definitions inside other functions, without missing any
25+
relevant definitions.
2426

2527
# Explanation
2628
[explanation]: #explanation

0 commit comments

Comments
 (0)