Skip to content

Commit 56b9b4b

Browse files
authored
Update tutorials.6_serializable.rst
Typo in variable name self._list_reference
1 parent 5c3170e commit 56b9b4b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/tutorials/tutorials.6_serializable.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ loaded into the class. It can be useful to set the variables not saved in the fi
128128

129129
In this scenario, we have to set the ``self.not_important`` variable to his default value, but only if it's None, i.e.
130130
has not been loaded from the file, because the file didn't contain it.
131-
Also, we set the `` self._list_primitive`` variable to maintain its original semantic, i.e. to contain a
131+
Also, we set the ``self._list_reference`` variable to maintain its original semantic, i.e. to contain a
132132
reference to the content of the ``self._dictionary`` variable.
133133

134134
To test the implementation, we write a function to write in easy to read way the content of the class:
@@ -144,4 +144,4 @@ Finally, we test the save functionality with the following code:
144144
We can see that the content of ``self.not_important`` is stored only if the ``full_save`` flag is set to true.
145145

146146
The last remark is that the ``Serializable`` interface works also in presence of inheritance. If you extend a
147-
serializable class, you only need to add the new attributes defined by the child class.
147+
serializable class, you only need to add the new attributes defined by the child class.

0 commit comments

Comments
 (0)