Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd4936cb

Browse files
committed
Fixes for debug formatting
`Debug` and `Display` now properly print all the scripts with " + " seperators.
1 parent1f84c2e commitd4936cb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

‎src/lib.rs‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -330,9 +330,10 @@ impl fmt::Display for ScriptExtension {
330330
}else{
331331
letmut first =true;
332332
for scriptinself.iter(){
333-
if !first{
334-
write!(f," + ")?;
333+
if first{
335334
first =false;
335+
}else{
336+
write!(f," + ")?;
336337
}
337338
script.full_name().fmt(f)?;
338339
}
@@ -361,7 +362,7 @@ impl UnicodeScript for char {
361362

362363
/// Iterator over scripts in a [ScriptExtension].
363364
///
364-
/// Can be obtainedia [ScriptExtension::iter()]
365+
/// Can be obtainedvia [ScriptExtension::iter()]
365366
pubstructScriptIterator{
366367
ext:ScriptExtension,
367368
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp