Skip to content

Commit a3ce771

Browse files
committed
Fix typos
1 parent 079a786 commit a3ce771

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ class Inlining extends MacroTransform with IdentityDenotTransformer {
6565
private class InliningTreeMap extends TreeMapWithImplicits {
6666

6767
/** List of top level classes added by macro annotation in a package object.
68-
* These are added the PackageDef that owns this particular package object.
68+
* These are added to the PackageDef that owns this particular package object.
6969
*/
7070
private val topClasses = new collection.mutable.ListBuffer[Tree]
7171

library/src/scala/quoted/Quotes.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3641,7 +3641,7 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
36413641
// TODO: add flags and privateWithin
36423642
@experimental def newClass(parent: Symbol, name: String, parents: List[TypeRepr], decls: Symbol => List[Symbol], selfType: Option[TypeRepr]): Symbol
36433643

3644-
/** Generates a new module symbol with an associated module class symbol.
3644+
/** Generates a new module symbol with an associated module class symbol,
36453645
* This returns the module symbol. The module class can be accessed calling `moduleClass` on this symbol.
36463646
*
36473647
* Example usage:
@@ -3684,10 +3684,10 @@ trait Quotes { self: runtime.QuoteUnpickler & runtime.QuoteMatching =>
36843684
*
36853685
* @param parent The owner of the class
36863686
* @param name The name of the class
3687-
* @param modFlags extra flags to with which the module symbol should be constructed
3688-
* @param clsFlags extra flags to with which the module class symbol should be constructed
3687+
* @param modFlags extra flags with which the module symbol should be constructed
3688+
* @param clsFlags extra flags with which the module class symbol should be constructed
36893689
* @param parents The parent classes of the class. The first parent must not be a trait.
3690-
* @param decls The member declarations of the module provided the symbol of this class
3690+
* @param decls A function that takes the symbol of the module class as input and return the symbols of its declared members
36913691
* @param privateWithin the symbol within which this new method symbol should be private. May be noSymbol.
36923692
*
36933693
* This symbol starts without an accompanying definition.

0 commit comments

Comments
 (0)