From 09f0876dc63bb386bc07d182b1bf85afb61f7db6 Mon Sep 17 00:00:00 2001 From: Noah Lev Date: Sat, 21 Aug 2021 12:39:17 -0700 Subject: [PATCH] Clarify wording in docs --- src/librustdoc/html/length_limit.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustdoc/html/length_limit.rs b/src/librustdoc/html/length_limit.rs index 42b94b511181..91e098979acf 100644 --- a/src/librustdoc/html/length_limit.rs +++ b/src/librustdoc/html/length_limit.rs @@ -10,7 +10,7 @@ use crate::html::escape::Escape; /// This buffer ensures that: /// /// * all tags are closed, -/// * only the most recently opened tag is closed, +/// * tags are closed in the reverse order of when they were opened (i.e., the correct HTML order), /// * no tags are left empty (e.g., ``) due to the length limit being reached, /// * all text is escaped. #[derive(Debug)]