summaryrefslogtreecommitdiff
path: root/src/pretty.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/pretty.rs')
-rw-r--r--src/pretty.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pretty.rs b/src/pretty.rs
index ff8841f3..46b82eb7 100644
--- a/src/pretty.rs
+++ b/src/pretty.rs
@@ -440,9 +440,9 @@ impl Pretty for ForPattern {
impl Pretty for ImportExpr {
fn pretty(&self, p: &mut Printer) {
p.push_str("import ");
- self.path.pretty(p);
- p.push_str(" using ");
self.imports.pretty(p);
+ p.push_str(" from ");
+ self.path.pretty(p);
}
}
@@ -737,7 +737,7 @@ mod tests {
roundtrip("#while x {y}");
roundtrip("#for x in y {z}");
roundtrip("#for k, x in y {z}");
- roundtrip("#import \"file.typ\" using *");
+ roundtrip("#import * from \"file.typ\"");
roundtrip("#include \"chapter1.typ\"");
}