diff --git a/docs/en/api-guides/partition-tables.rst b/docs/en/api-guides/partition-tables.rst index 2c601542f3..932eb773a2 100644 --- a/docs/en/api-guides/partition-tables.rst +++ b/docs/en/api-guides/partition-tables.rst @@ -277,7 +277,7 @@ The starting point for using the tool's Python API to do is create a `ParttoolTa .. code-block:: python - # Create a partool.py target device connected on serial port /dev/ttyUSB1 + # Create a parttool.py target device connected on serial port /dev/ttyUSB1 target = ParttoolTarget("/dev/ttyUSB1") The created object can now be used to perform operations on the target device: diff --git a/docs/en/api-reference/system/ota.rst b/docs/en/api-reference/system/ota.rst index fa129fdec4..6e8c761d07 100644 --- a/docs/en/api-reference/system/ota.rst +++ b/docs/en/api-reference/system/ota.rst @@ -232,7 +232,7 @@ The starting point for using the tool's Python API to do is create a ``OtatoolTa .. code-block:: python - # Create a partool.py target device connected on serial port /dev/ttyUSB1 + # Create a parttool.py target device connected on serial port /dev/ttyUSB1 target = OtatoolTarget("/dev/ttyUSB1") The created object can now be used to perform operations on the target device: diff --git a/docs/zh_CN/api-guides/partition-tables.rst b/docs/zh_CN/api-guides/partition-tables.rst index 6d0c84e7fe..69a26b5faf 100644 --- a/docs/zh_CN/api-guides/partition-tables.rst +++ b/docs/zh_CN/api-guides/partition-tables.rst @@ -277,7 +277,7 @@ Python API .. code-block:: python - # 创建 partool.py 的目标设备,并将目标设备连接到串行端口 /dev/ttyUSB1 + # 创建 parttool.py 的目标设备,并将目标设备连接到串行端口 /dev/ttyUSB1 target = ParttoolTarget("/dev/ttyUSB1") 现在,可使用创建的 `ParttoolTarget` 在目标设备上完成操作: diff --git a/docs/zh_CN/api-reference/system/ota.rst b/docs/zh_CN/api-reference/system/ota.rst index 2feb323a10..a8663e201b 100644 --- a/docs/zh_CN/api-reference/system/ota.rst +++ b/docs/zh_CN/api-reference/system/ota.rst @@ -232,7 +232,7 @@ Python API .. code-block:: python - # 创建 partool.py 的目标设备,并将目标设备连接到串行端口 /dev/ttyUSB1 + # 创建 parttool.py 的目标设备,并将目标设备连接到串行端口 /dev/ttyUSB1 target = OtatoolTarget("/dev/ttyUSB1") 现在,可使用创建的 `OtatoolTarget` 在目标设备上完成操作: