From 433cffd6735ad6c54c73ccc38603d99caad5b69a Mon Sep 17 00:00:00 2001 From: Markus Klein Date: Thu, 29 Jun 2017 02:33:58 +0200 Subject: [PATCH] add meta information --- Cargo.toml | 2 ++ src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 34e20e6..b8d3385 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -3,6 +3,8 @@ name = "atoi" version = "0.1.0" authors = ["Markus Klein "] license = "MIT" +repository = "https://github.com/pacman82/atoi-rs" +documentation = "https://docs.rs/atoi/" # A short blurb about the package. This is not rendered in any format when # uploaded to crates.io (aka this is not markdown). diff --git a/src/lib.rs b/src/lib.rs index 50bca88..4e9b46b 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -34,7 +34,7 @@ use std::ops::{AddAssign, MulAssign}; /// # Return /// Returns a tuple with two numbers. The first is the integer parsed or zero, the second is the /// index of the byte right after the parsed number. If the second element is zero the slice -/// did not start with an ASCII number. +/// did not start with an ASCII digit. pub fn atoi(text: &[u8]) -> (I, usize) where I: Zero + One + AddAssign + MulAssign {