From 9e33211c2cfc3f45bdb62d6b5f6f4420a74a7745 Mon Sep 17 00:00:00 2001 From: Max-Type <160228942+Max-Type@users.noreply.github.com> Date: Fri, 16 Feb 2024 11:27:47 +0100 Subject: [PATCH] Fix Typo --- source/modules/Modules.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/modules/Modules.rst b/source/modules/Modules.rst index cffdc50..bfc0dd3 100644 --- a/source/modules/Modules.rst +++ b/source/modules/Modules.rst @@ -485,6 +485,6 @@ Running ``mod2.py`` results in:: Still in mod2: mod1.x = 555 mod3 changed the value in mod1, and that change shows up in mod2 -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. +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. 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!