Skip to content

Commit

Permalink
Switch doc comments to Rune
Browse files Browse the repository at this point in the history
  • Loading branch information
dstoza committed Feb 28, 2024
1 parent 64e8a07 commit d43a426
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions crates/rune/src/modules/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1118,15 +1118,15 @@ fn parse_char(s: &str) -> Result<char, char::ParseCharError> {
///
/// Basic usage:
///
/// ```
/// ```rune
/// let s = "HELLO";
///
/// assert_eq!("hello", s.to_lowercase());
/// ```
///
/// A tricky example, with sigma:
///
/// ```
/// ```rune
/// let sigma = "Σ";
///
/// assert_eq!("σ", sigma.to_lowercase());
Expand All @@ -1139,7 +1139,7 @@ fn parse_char(s: &str) -> Result<char, char::ParseCharError> {
///
/// Languages without case are not changed:
///
/// ```
/// ```rune
/// let new_year = "农历新年";
///
/// assert_eq!(new_year, new_year.to_lowercase());
Expand All @@ -1162,22 +1162,22 @@ fn to_lowercase(s: &str) -> VmResult<String> {
///
/// Basic usage:
///
/// ```
/// ```rune
/// let s = "hello";
///
/// assert_eq!("HELLO", s.to_uppercase());
/// ```
///
/// 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());
Expand Down

0 comments on commit d43a426

Please sign in to comment.