Skip to main content

trim_left

Function trim_left 

Source
pub fn trim_left(string: &str) -> String
Expand description

Removes leading whitespaces.

ยงExamples

use conform::make::trim_left;

assert_eq!(trim_left("  foo  "), "foo  ".to_string());