Skip to content

Commit 473ea28

Browse files
authored
Merge pull request #341 from hyper/patch-2
Update README.md
2 parents 280cf65 + bde8aa7 commit 473ea28

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ print(new_record)
349349

350350
### Update a domain record
351351

352-
This example shows how to create new domain record (sub.example.com):
352+
This example shows how to modify an existing domain record (sub.example.com):
353353

354354
```python
355355
import digitalocean
@@ -358,7 +358,7 @@ domain = digitalocean.Domain(token=TOKEN, name="example.com")
358358
records = domain.get_records()
359359
id = None
360360
for r in records:
361-
if r.name == 'usb':
361+
if r.name == 'sub':
362362
r.data = '1.1.1.1'
363363
r.save()
364364
```

0 commit comments

Comments
 (0)