aboutsummaryrefslogtreecommitdiffstats
path: root/askama_shared/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-10-08 11:22:43 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2018-10-08 11:22:43 +0200
commit54a106ca166ef37129fbcb8490ab94e5cb7f346d (patch)
tree1148f1c72e183fbfbe2a57d84b9aceed37fdb1d3 /askama_shared/src
parent5d8ccc9acf7d0be790ee5454cec0a016dfa5960d (diff)
downloadaskama-54a106ca166ef37129fbcb8490ab94e5cb7f346d.tar.gz
askama-54a106ca166ef37129fbcb8490ab94e5cb7f346d.tar.bz2
askama-54a106ca166ef37129fbcb8490ab94e5cb7f346d.zip
Remove periods from documentation sentence fragments
Diffstat (limited to '')
-rw-r--r--askama_shared/src/filters/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/askama_shared/src/filters/mod.rs b/askama_shared/src/filters/mod.rs
index 2b3758c..9b760f0 100644
--- a/askama_shared/src/filters/mod.rs
+++ b/askama_shared/src/filters/mod.rs
@@ -189,7 +189,7 @@ pub fn capitalize(s: &fmt::Display) -> Result<String> {
}
}
-/// Centers the value in a field of a given width.
+/// Centers the value in a field of a given width
pub fn center(s: &fmt::Display, l: usize) -> Result<String> {
let s = format!("{}", s);
let len = s.len();
@@ -216,7 +216,7 @@ pub fn center(s: &fmt::Display, l: usize) -> Result<String> {
}
}
-/// Count the words in that string.
+/// Count the words in that string
pub fn wordcount(s: &fmt::Display) -> Result<usize> {
let s = format!("{}", s);