aboutsummaryrefslogtreecommitdiffstats
path: root/src/arg.rs
diff options
context:
space:
mode:
authorTeddy Wing2020-08-02 18:49:36 +0200
committerTeddy Wing2020-08-02 18:49:51 +0200
commit8e5ac6f2d4e52eea95e5a6fc2905ce511ac4956e (patch)
treef5e56fbf1fc673c8a75f160c297fa79d0937e0d4 /src/arg.rs
parent646ed6c2027864b6373453c2f529796f01b3e715 (diff)
downloadgit-suggestion-8e5ac6f2d4e52eea95e5a6fc2905ce511ac4956e.tar.bz2
Add documentation comments
Light documentation for our various functions and types.
Diffstat (limited to 'src/arg.rs')
-rw-r--r--src/arg.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/arg.rs b/src/arg.rs
index eaea67b..d1d62d9 100644
--- a/src/arg.rs
+++ b/src/arg.rs
@@ -1,6 +1,7 @@
use regex::{self, Regex};
+/// Check if `s` is a numeric ID.
pub fn is_suggestion_id(s: &str) -> Result<bool, regex::Error> {
let re = Regex::new(r"^\d+$")?;