Skip to content

Commit e76f078

Browse files
elfprince13odersky
andauthored
Apply suggestions from code review (#13750)
Comment formatting + typos. Co-authored-by: odersky <odersky@gmail.com>
1 parent 9133065 commit e76f078

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

compiler/src/dotty/tools/dotc/Compiler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class Compiler {
7373
new ProtectedAccessors, // Add accessors for protected members
7474
new ExtensionMethods, // Expand methods of value classes with extension methods
7575
new UncacheGivenAliases, // Avoid caching RHS of simple parameterless given aliases
76-
new ElimContextClosures, // Unwrap context closures that contain only a context function of compatible type
76+
new ElimContextClosures, // Unwrap context closures that contain only a context function of compatible type
7777
new ByNameClosures, // Expand arguments to by-name parameters to closures
7878
new HoistSuperArgs, // Hoist complex arguments of supercalls to enclosing scope
7979
new SpecializeApplyMethods, // Adds specialized methods to FunctionN

compiler/src/dotty/tools/dotc/transform/ElimContextClosures.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ import reporting.trace
2626
* function literal.
2727
*
2828
* This makes for very ergonomic client code, but the implementation
29-
* requires the wrapper to be genereated before type information is available.
30-
* Thus, it can't be determine if the passed value is already a context function
29+
* requires the wrapper to be generated before type information is available.
30+
* Thus, it can't be determined if the passed value is already a context function
3131
* of the expected type, and the closure must be generated either way.
3232
*
3333
* Without this phase, when a contextual function is passed as an argument to a

0 commit comments

Comments
 (0)