From e75e227afc8b44e06f589ea8089a28be1eb29a7f Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Sat, 30 May 2020 01:40:39 -0700 Subject: [PATCH] Improve docs for 'Options::NormalizeDirs'. --- contrib/lib/src/serve.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/lib/src/serve.rs b/contrib/lib/src/serve.rs index 96fe4eaa..b6dc2884 100644 --- a/contrib/lib/src/serve.rs +++ b/contrib/lib/src/serve.rs @@ -29,6 +29,8 @@ use rocket::outcome::IntoOutcome; /// * [`Options::None`] - Return only present, visible files. /// * [`Options::DotFiles`] - In addition to visible files, return dotfiles. /// * [`Options::Index`] - Render `index.html` pages for directory requests. +/// * [`Options::NormalizeDirs`] - Redirect directories without a trailing +/// slash to ones with a trailing slash. /// /// `Options` structures can be `or`d together to select two or more options. /// For instance, to request that both dot files and index pages be returned, @@ -39,8 +41,8 @@ pub struct Options(u8); #[allow(non_upper_case_globals, non_snake_case)] impl Options { /// `Options` representing the empty set. No dotfiles or index pages are - /// rendered. This is different than the [`Options::default()`], which - /// enables `Index`. + /// rendered. This is different than [`Options::default()`](#impl-Default), + /// which enables `Index`. pub const None: Options = Options(0b0000); /// `Options` enabling responding to requests for a directory with the