Skip to content

Commit

Permalink
README.md: Fix example code
Browse files Browse the repository at this point in the history
  • Loading branch information
simnalamburt authored Oct 22, 2024
1 parent 604d4bc commit c79e8a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,12 @@ if let Ok(r) = excel.worksheet_range("Sheet1") {
### Reader: With header row

```rs
use calamine::{Reader, Xlsx, open_workbook};
use calamine::{HeaderRow, Reader, Xlsx, open_workbook};

let mut excel: Xlsx<_> = open_workbook("file.xlsx").unwrap();

let sheet1 = excel
.with_header_row(Some(3))
.with_header_row(HeaderRow::Row(3))
.worksheet_range("Sheet1")
.unwrap();
```
Expand Down

0 comments on commit c79e8a4

Please sign in to comment.