Skip to content

Commit a6c538d

Browse files
Apply suggestions from code review
Co-authored-by: Fengyun Liu <[email protected]>
1 parent d5e84f4 commit a6c538d

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

compiler/src/dotty/tools/repl/ReplDriver.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ class ReplDriver(settings: Array[String],
377377

378378
case TypeOf(expr) =>
379379
expr match {
380-
case "" => out.println(s":type <expression>.")
380+
case "" => out.println(s":type <expression>")
381381
case _ =>
382382
compiler.typeOf(expr)(newRun(state)).fold(
383383
displayErrors,
@@ -388,7 +388,7 @@ class ReplDriver(settings: Array[String],
388388

389389
case DocOf(expr) =>
390390
expr match {
391-
case "" => out.println(s":doc <expression>.")
391+
case "" => out.println(s":doc <expression>")
392392
case _ =>
393393
compiler.docOf(expr)(newRun(state)).fold(
394394
displayErrors,

compiler/test-resources/repl/i9538

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
scala>:type
2-
:type <expression>.
2+
:type <expression>
33

44
scala>:doc
5-
:doc <expression>.
5+
:doc <expression>

compiler/test/dotty/tools/repl/DocTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ class DocTests extends ReplTest {
180180
@Test def docOfEmpty =
181181
fromInitialState { implicit s =>
182182
run(":doc")
183-
assertEquals(":doc <expression>.", storedOutput().trim)
183+
assertEquals(":doc <expression>", storedOutput().trim)
184184
}
185185

186186
private def eval(code: String): State =

compiler/test/dotty/tools/repl/TypeTests.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@ class TypeTests extends ReplTest {
2424

2525
@Test def typeOfEmpty = fromInitialState { implicit s =>
2626
run(":type")
27-
assertEquals(":type <expression>.", storedOutput().trim)
27+
assertEquals(":type <expression>", storedOutput().trim)
2828
}
2929
}

0 commit comments

Comments
 (0)