Add comments to standard library functions.

This commit is contained in:
Stephen Chung
2022-01-17 21:49:06 +08:00
parent 5232bbbff8
commit 16c03cc864
3 changed files with 387 additions and 21 deletions

View File

@@ -764,7 +764,7 @@ mod string_functions {
}
}
/// Remove all characters from the string except those within an exclusive range.
/// Remove all characters from the string except those within an exclusive `range`.
///
/// # Example
///
@@ -781,7 +781,7 @@ mod string_functions {
let end = INT::max(range.end, start);
crop(string, start, end - start)
}
/// Remove all characters from the string except those within an inclusive range.
/// Remove all characters from the string except those within an inclusive `range`.
///
/// # Example
///