Skip to content

Commit 7189c81

Browse files
authored
Clarify documentation of global variables, fixes JuliaLang#44695 (JuliaLang#44709)
1 parent 2099987 commit 7189c81

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/src/manual/performance-tips.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The functions should take arguments, instead of operating directly on global var
1313

1414
## Avoid untyped global variables
1515

16-
An untyped global variable might have its value, and therefore possibly its type, changed at any point. This makes
16+
The value of an untyped global variable might change at any point, possibly leading to a change of its type. This makes
1717
it difficult for the compiler to optimize code using global variables. This also applies to type-valued variables,
1818
i.e. type aliases on the global level. Variables should be local, or passed as arguments to functions, whenever possible.
1919

0 commit comments

Comments
 (0)