Skip to content

Commit 5eab472

Browse files
update docs
1 parent 6ecc358 commit 5eab472

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def rocketpy_encoder(obj, config: DiscretizeConfig = DiscretizeConfig()):
4949
"""
5050
Encode a RocketPy object using official RocketPy encoders.
5151
52-
This function creates a shallow copy of the object, discretizes callable Function
52+
This function creates a copy of the object, discretizes callable Function
5353
attributes on the copy, and then uses RocketPy's official RocketPyEncoder for
5454
complete object serialization. The original object remains unchanged.
5555
@@ -61,7 +61,7 @@ def rocketpy_encoder(obj, config: DiscretizeConfig = DiscretizeConfig()):
6161
Dictionary of encoded attributes
6262
"""
6363

64-
# Create a shallow copy to avoid mutating the original object
64+
# Create a copy to avoid mutating the original object
6565
obj_copy = copy.deepcopy(obj)
6666

6767
for attr_name in dir(obj_copy):

0 commit comments

Comments
 (0)