From 830f8cdaeb73f042d6af8ab6602bc70b35fa9487 Mon Sep 17 00:00:00 2001
From: Arthur <47481450+avan-pra@users.noreply.github.com>
Date: Thu, 23 Nov 2023 15:26:08 +0100
Subject: [PATCH] Fix broken example README.md

Did not compile because `text` variable wasn't there
---
 README.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/README.md b/README.md
index cabdb88..8a399a4 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ use atoi::FromRadix10;
 fn atoi_with_rest<I: FromRadix10>(text: &[u8]) -> Option<(&[u8], I)> {
     match I::from_radix_10(text) {
         (_, 0) => None,
-        (n, used) => Some((&[used..], n)),
+        (n, used) => Some((&text[used..], n)),
     }
 }
 ```