1
0
Эх сурвалжийг харах

Replace trim_left_matches with trim_start_matches

Bernardo Meurer 6 жил өмнө
parent
commit
9660048b41
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/style/lsc.rs

+ 1 - 1
src/style/lsc.rs

@@ -88,7 +88,7 @@ impl<'var> Pair<'var> {
         let mut iter = self.value.split(';').peekable();
 
         while let Some(num) = iter.next() {
-            match num.trim_left_matches('0') {
+            match num.trim_start_matches('0') {
 
                 // Bold and italic
                 "1" => style = style.bold(),