From d43a4265ab9ddb3d748e7d2dbfc353bac567bbb4 Mon Sep 17 00:00:00 2001 From: Dan Stoza Date: Wed, 28 Feb 2024 09:20:49 -0800 Subject: [PATCH] Switch doc comments to Rune --- crates/rune/src/modules/string.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crates/rune/src/modules/string.rs b/crates/rune/src/modules/string.rs index b71b3161c..937e9468e 100644 --- a/crates/rune/src/modules/string.rs +++ b/crates/rune/src/modules/string.rs @@ -1118,7 +1118,7 @@ fn parse_char(s: &str) -> Result { /// /// Basic usage: /// -/// ``` +/// ```rune /// let s = "HELLO"; /// /// assert_eq!("hello", s.to_lowercase()); @@ -1126,7 +1126,7 @@ fn parse_char(s: &str) -> Result { /// /// A tricky example, with sigma: /// -/// ``` +/// ```rune /// let sigma = "Σ"; /// /// assert_eq!("σ", sigma.to_lowercase()); @@ -1139,7 +1139,7 @@ fn parse_char(s: &str) -> Result { /// /// Languages without case are not changed: /// -/// ``` +/// ```rune /// let new_year = "农历新年"; /// /// assert_eq!(new_year, new_year.to_lowercase()); @@ -1162,7 +1162,7 @@ fn to_lowercase(s: &str) -> VmResult { /// /// Basic usage: /// -/// ``` +/// ```rune /// let s = "hello"; /// /// assert_eq!("HELLO", s.to_uppercase()); @@ -1170,14 +1170,14 @@ fn to_lowercase(s: &str) -> VmResult { /// /// Scripts without case are not changed: /// -/// ``` +/// ```rune /// let new_year = "农历新年"; /// /// assert_eq!(new_year, new_year.to_uppercase()); /// ``` /// /// One character can become multiple: -/// ``` +/// ```rune /// let s = "tschüß"; /// /// assert_eq!("TSCHÜSS", s.to_uppercase());