File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -375,7 +375,7 @@ mod tests {
375375 let text = "こんにちは" ;
376376 assert_eq ! ( safe_slice_up_to( text, 3 ) , "こ" ) ; // Valid boundary
377377 assert_eq ! ( safe_slice_up_to( text, 6 ) , "こん" ) ; // Valid boundary
378- // Position 4 is inside the second character, should return "こ"
378+ // Position 4 is inside the second character, should return "こ"
379379 assert_eq ! ( safe_slice_up_to( text, 4 ) , "こ" ) ;
380380 assert_eq ! ( safe_slice_up_to( text, 5 ) , "こ" ) ;
381381 }
@@ -384,7 +384,7 @@ mod tests {
384384 fn test_safe_slice_from_multibyte ( ) {
385385 let text = "こんにちは" ;
386386 assert_eq ! ( safe_slice_from( text, 3 ) , "んにちは" ) ; // Valid boundary
387- // Position 4 is inside second character, should skip to position 6
387+ // Position 4 is inside second character, should skip to position 6
388388 assert_eq ! ( safe_slice_from( text, 4 ) , "にちは" ) ;
389389 assert_eq ! ( safe_slice_from( text, 5 ) , "にちは" ) ;
390390 }
You can’t perform that action at this time.
0 commit comments