Skip to content

Commit 8c02dc8

Browse files
authored
Update README.md (dfurtado#40)
Fixed typo, the method in the DataclassWriter is called `write`.
1 parent 03ffb08 commit 8c02dc8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Initialize it with the required arguments and call the method `write`:
344344
```python
345345
with open("users.csv", "w") as f:
346346
w = DataclassWriter(f, users, User)
347-
w.writer()
347+
w.write()
348348
```
349349

350350
That's it! Let's break down the snippet above.
@@ -386,7 +386,7 @@ depending on your use case it makes sense to change it. The `DataclassWriter` ha
386386
w.map("firstname").to("First name")
387387
w.map("lastname").to("Last name")
388388

389-
w.writer()
389+
w.write()
390390
```
391391

392392
The CSV output of the snippet above will be:

0 commit comments

Comments
 (0)