From c79e8a4d7cd493a19ba2f0c774d7a2ee7692a280 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jihyeon=20Kim=20=28=EA=B9=80=EC=A7=80=ED=98=84=29?= Date: Tue, 22 Oct 2024 22:08:39 +0900 Subject: [PATCH] README.md: Fix example code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 28c8e03..c757613 100644 --- a/README.md +++ b/README.md @@ -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(); ```