Skip to content

Commit c6c6c80

Browse files
liufengyunolhotak
andauthored
Fix typos from code review
Co-authored-by: Ondřej Lhoták <[email protected]>
1 parent 310226f commit c6c6c80

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/init/Objects.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ class Objects(using Context @constructorOnly):
427427
try
428428
init(tpl, obj, classSym)
429429
catch case _: OutOfQuotaException =>
430-
report.warning("Giving up checking initializatino of " + classSym + " due to exhausted budget", classSym.sourcePos)
430+
report.warning("Giving up checking initialization of " + classSym + " due to exhausted budget", classSym.sourcePos)
431431
data.addQuotaExhausted(obj)
432432
data.addChecked(obj)
433433
data.popChecking()
@@ -445,7 +445,7 @@ class Objects(using Context @constructorOnly):
445445
iterate()
446446
else
447447
if !BestEffort then
448-
report.warning("Giving up checking initializatino of " + classSym + " due to iteration > = " + count, classSym.sourcePos)
448+
report.warning("Giving up checking initialization of " + classSym + " due to iteration > = " + count, classSym.sourcePos)
449449
data.addChecked(obj)
450450
obj
451451
else

0 commit comments

Comments
 (0)