Skip to content

Commit 6afb396

Browse files
authored
Fix typos in README example code (#2)
2 parents 84a6a0c + d44fc1d commit 6afb396

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

README.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ Example usage
2626

2727
.. code:: python
2828
29-
# import the library
30-
import absscpi
29+
from absscpi import ScpiClient
3130
from time import sleep
3231
3332
with ScpiClient() as client:
@@ -39,7 +38,7 @@ Example usage
3938
ident = client.get_device_info()
4039
print(f"Device ID: {id}")
4140
print(f"Part numer: {ident.get_part_number()}")
42-
print(f"Serial number: {ident.get_serial_number()}")
41+
print(f"Serial number: {ident.get_serial()}")
4342
print(f"FW version: {ident.get_version()}")
4443
4544
# command cell 1 to 1.4V

0 commit comments

Comments
 (0)