summaryrefslogtreecommitdiff
path: root/src/pretty.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-08 21:16:16 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-08 21:16:16 +0200
commit551e3af9d09a03aaa246cac46b98124bc10835ba (patch)
treeb075a93df7cb608eae9650e497fb6a1336d80212 /src/pretty.rs
parent5c327e249e03ac303e7fef40e2df6c6ef834db66 (diff)
Replace using with from
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\"");
}