From 7b9af164dabd2b448f36d2153d4f8ad2b91252e1 Mon Sep 17 00:00:00 2001 From: Frank Elsinga Date: Fri, 13 Dec 2024 21:30:38 +0100 Subject: [PATCH] typo fixes --- docs/src/sources-fonts.md | 2 +- martin/src/fonts/mod.rs | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/src/sources-fonts.md b/docs/src/sources-fonts.md index 27e013a88..b6c029aa3 100644 --- a/docs/src/sources-fonts.md +++ b/docs/src/sources-fonts.md @@ -67,7 +67,7 @@ curl http://127.0.0.1:3000/font/%7Bfontstack%7D/%7Brange%7D [ "Overpass Mono Bold", "Overpass Mono Light", - "Overpass Mono SemiBold", + "Overpass Mono SemiBold" ] ``` diff --git a/martin/src/fonts/mod.rs b/martin/src/fonts/mod.rs index 5d3e11b93..578a68f6c 100644 --- a/martin/src/fonts/mod.rs +++ b/martin/src/fonts/mod.rs @@ -155,6 +155,7 @@ impl FontSources { .collect() } + /// Returns an alphabetically sorted list of font stacks (i.e. the name of the font) #[must_use] pub fn get_fontstacks(&self) -> Vec { self.fonts.keys().cloned().sorted().collect()