diff options
author | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-22 22:02:12 +0000 |
---|---|---|
committer | boastful-squirrel <boastful.squirrel@gmail.com> | 2019-04-22 22:02:12 +0000 |
commit | c0d5e5c73be8ec5891c0e3d189a89b5c260a8313 (patch) | |
tree | da13d04a909da01328dac4853c6b05bcc51c5b61 /src | |
parent | Display errors from main() through log strem (diff) | |
download | miniserve-c0d5e5c73be8ec5891c0e3d189a89b5c260a8313.tar.gz miniserve-c0d5e5c73be8ec5891c0e3d189a89b5c260a8313.zip |
Fixed comment
Diffstat (limited to 'src')
-rw-r--r-- | src/renderer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index eccc72d..b292e70 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -760,7 +760,7 @@ fn humanize_systemtime(src_time: Option<SystemTime>) -> Option<String> { .map(|duration| HumanTime::from(duration).to_text_en(Accuracy::Rough, Tense::Past)) } -/// Renders error page when file uploading fails +/// Renders an error on the webpage pub fn render_error(error_description: &str, return_address: &str) -> Markup { html! { pre { (error_description) } |