Skip to content

Commit 9e33211

Browse files
authored
Fix Typo
1 parent e5e90ab commit 9e33211

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/modules/Modules.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,6 @@ Running ``mod2.py`` results in::
485485
Still in mod2: mod1.x = 555
486486
mod3 changed the value in mod1, and that change shows up in mod2
487487

488-
You can see that when ``mod2`` changed the value of ``mod1.x``, that changed the value everywhere that ``mod1`` is imported. You want to be very careful about this.
488+
You can see that when ``mod3`` changed the value of ``mod1.x``, that changed the value everywhere that ``mod1`` is imported. You want to be very careful about this.
489489

490490
If you are writing ``mod2.py``, and did not write ``mod3`` (or wrote it long enough ago that you don't remember its details), you might be very surprised that a value in ``mod1`` changes simply because you imported ``mod3``. This is known as a "side effect", and you generally want to avoid them!

0 commit comments

Comments
 (0)