Skip to content

Commit a65da2e

Browse files
committed
Fix typos
1 parent 731493b commit a65da2e

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/dotty/tools/dotc/parsing/Parsers.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ object Parsers {
151151
/* ------------- ERROR HANDLING ------------------------------------------- */
152152

153153
/** The offset of the last time when a statement on a new line was definitely
154-
* encountered in the current scope or an outer scope\
154+
* encountered in the current scope or an outer scope.
155155
*/
156156
private var lastStatOffset = -1
157157

@@ -505,7 +505,7 @@ object Parsers {
505505
if (t1 ne t) t1 else dotSelectors(selector(t), finish)
506506
}
507507

508-
/** Dotelectors ::= { `.' ident()
508+
/** DotSelectors ::= { `.' ident()
509509
*
510510
* Accept `.' separated identifiers acting as a selectors on given tree `t`.
511511
* @param finish An alternative parse in case the token following a `.' is not an identifier.
@@ -521,7 +521,7 @@ object Parsers {
521521
* | [Ident `.'] this
522522
*
523523
* @param thisOK If true, [Ident `.'] this is acceptable as the path.
524-
* If false, another selection is required aftre the `this`.
524+
* If false, another selection is required after the `this`.
525525
* @param finish An alternative parse in case the token following a `.' is not an identifier.
526526
* If the alternative does not apply, its tree argument is returned unchanged.
527527
*/

src/dotty/tools/dotc/reporting/diagnostic/Message.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ abstract class Message(val errorId: Int) { self =>
3131
* > expected: String
3232
* > found: Int
3333
*
34-
* This message wil be placed underneath the position given by the enclosing
34+
* This message will be placed underneath the position given by the enclosing
3535
* `MessageContainer`
3636
*/
3737
def msg: String

0 commit comments

Comments
 (0)