Skip to content

Commit 355d2f6

Browse files
Merge pull request #14166 from SethTisue/typos
festive holiday typo fixes
2 parents 48abca8 + 56067eb commit 355d2f6

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/typer/Typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ class Typer(@constructorOnly nestingLevel: Int = 0) extends Namer
336336
* A package object should always be skipped if we look for a term.
337337
* That way we make sure we consider all overloaded alternatives of
338338
* a definition, even if they are in different source files.
339-
* If we are looking for a type, a package object should ne skipped
339+
* If we are looking for a type, a package object should be skipped
340340
* only if it does not contain opaque definitions. Package objects
341341
* with opaque definitions are significant, since opaque aliases
342342
* are only seen if the prefix is the this-type of the package object.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class ReplCompilerTests extends ReplTest {
8585
assertEquals("x: Int = 10", storedOutput().trim)
8686
}
8787

88-
@Test def defaultParamter = fromInitialState { implicit state =>
88+
@Test def defaultParameter = fromInitialState { implicit state =>
8989
run("def foo(a: Int = 1): 1 = 1")
9090
assertEquals("def foo(a: Int): 1", storedOutput().trim)
9191
}

docs/docs/internals/dotty-internals-1-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ on the structure of a tree is error-prone.
8888
## Errors
8989
`dotc/typer/ErrorReporting.scala`
9090

91-
Sometimes there's an error during compilation, but we want to continue compilling (as opposed to failing outright), to
91+
Sometimes there's an error during compilation, but we want to continue compiling (as opposed to failing outright), to
9292
uncover additional errors.
9393

9494
In cases where a tree is expected but there's an error, we can use the `errorTree` methods in `ErrorReporting` to create

0 commit comments

Comments
 (0)