We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f84c2e commit d4936cbCopy full SHA for d4936cb
src/lib.rs
@@ -330,9 +330,10 @@ impl fmt::Display for ScriptExtension {
330
} else {
331
let mut first = true;
332
for script in self.iter() {
333
- if !first {
334
- write!(f, " + ")?;
+ if first {
335
first = false;
+ } else {
336
+ write!(f, " + ")?;
337
}
338
script.full_name().fmt(f)?;
339
@@ -361,7 +362,7 @@ impl UnicodeScript for char {
361
362
363
/// Iterator over scripts in a [ScriptExtension].
364
///
-/// Can be obtained ia [ScriptExtension::iter()]
365
+/// Can be obtained via [ScriptExtension::iter()]
366
pub struct ScriptIterator {
367
ext: ScriptExtension,
368
0 commit comments