method str.trimSuffix
self without the trailing suffix.
Example:
fn main() io {
print("main.oxl".trimSuffix(".oxl"))
}Output
main
pub(api) fn trimSuffix(suffix: str) -> strSince. 1.0.0-beta
Parameters
| Name | Type |
|---|---|
suffix | str |
Returns
str
Effects
none declared (pure unless the body says otherwise)
Defined in: std/core/text.oxl:654