diff options
author | Paul Phillips <paulp@improving.org> | 2011-04-30 20:00:39 +0000 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2011-04-30 20:00:39 +0000 |
commit | acc5311c157358c99420ba5a8be4231ffae9fc8e (patch) | |
tree | c99d20bb582b9474bc7520a6afca7fb2f7cb6296 /src/compiler/scala/tools/nsc | |
parent | 95ae7765e85fb7942ce8724170e72fa8c3076aa0 (diff) | |
download | scala-acc5311c157358c99420ba5a8be4231ffae9fc8e.tar.gz scala-acc5311c157358c99420ba5a8be4231ffae9fc8e.tar.bz2 scala-acc5311c157358c99420ba5a8be4231ffae9fc8e.zip |
After having to update the code for someone els...
After having to update the code for someone else, ran damarau
levenshtein on trunk again. Patchwise, I guess correcting spelling
errors in comments is about as safe as it gets. No review.
Diffstat (limited to 'src/compiler/scala/tools/nsc')
11 files changed, 16 insertions, 16 deletions
diff --git a/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala b/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala index 2c29bf9f1f..70bbd85330 100644 --- a/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala +++ b/src/compiler/scala/tools/nsc/backend/icode/BasicBlocks.scala @@ -351,7 +351,7 @@ trait BasicBlocks { def exceptionSuccessorsForBlock(block: BasicBlock): List[BasicBlock] = method.exh collect { case x if x covers block => x.startBlock } - /** Cached value of successors. Must be recomputed whenver a block in the current method is changed. */ + /** Cached value of successors. Must be recomputed whenever a block in the current method is changed. */ private var succs: List[BasicBlock] = Nil private def updateSuccs() { resetFlag(DIRTYSUCCS) diff --git a/src/compiler/scala/tools/nsc/backend/icode/Members.scala b/src/compiler/scala/tools/nsc/backend/icode/Members.scala index 92107565f9..630f109bb6 100644 --- a/src/compiler/scala/tools/nsc/backend/icode/Members.scala +++ b/src/compiler/scala/tools/nsc/backend/icode/Members.scala @@ -262,10 +262,10 @@ trait Members { self: ICodes => class Local(val sym: Symbol, val kind: TypeKind, val arg: Boolean) { var index: Int = -1 - /** Starting PC for this local's visbility range. */ + /** Starting PC for this local's visibility range. */ var start: Int = _ - /** Ending PC for this local's visbility range. */ + /** Ending PC for this local's visibility range. */ var end: Int = _ /** PC-based ranges for this local variable's visibility */ diff --git a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala index a7c2b2abd3..76e0162593 100644 --- a/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala +++ b/src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala @@ -752,7 +752,7 @@ abstract class GenJVM extends SubComponent with GenJVMUtil with GenAndroid with if (!jmethod.isAbstract() && !method.native) { val jcode = jmethod.getCode().asInstanceOf[JExtendedCode] - // add a fake local for debugging purpuses + // add a fake local for debugging purposes if (emitVars && isClosureApply(method.symbol)) { val outerField = clasz.symbol.info.decl(nme.OUTER_LOCAL) if (outerField != NoSymbol) { diff --git a/src/compiler/scala/tools/nsc/doc/model/Entity.scala b/src/compiler/scala/tools/nsc/doc/model/Entity.scala index 86de011e68..a09194c2dd 100644 --- a/src/compiler/scala/tools/nsc/doc/model/Entity.scala +++ b/src/compiler/scala/tools/nsc/doc/model/Entity.scala @@ -161,7 +161,7 @@ trait MemberEntity extends Entity { /** Whether this member is implicit. */ def isImplicit: Boolean - /** Whether this member is abtract. */ + /** Whether this member is abstract. */ def isAbstract: Boolean } @@ -260,7 +260,7 @@ trait Class extends Trait with HigherKinded { def constructors: List[Constructor] /** The value parameters of this case class, or an empty list if this class is not a case class. As case class value - * paramters cannot be curried, the outer list has exactly one element. */ + * parameters cannot be curried, the outer list has exactly one element. */ def valueParams: List[List[ValueParam]] } diff --git a/src/compiler/scala/tools/nsc/interactive/Global.scala b/src/compiler/scala/tools/nsc/interactive/Global.scala index d8f43fd209..da97e10584 100644 --- a/src/compiler/scala/tools/nsc/interactive/Global.scala +++ b/src/compiler/scala/tools/nsc/interactive/Global.scala @@ -144,7 +144,7 @@ class Global(settings: Settings, reporter: Reporter, projectName: String = "") unitOfFile.getOrElse(source.file, { println("precondition violated: "+source+" is not loaded"); new Exception().printStackTrace(); new RichCompilationUnit(source) }) /** Work through toBeRemoved list to remove any units. - * Then return optionlly unit associated with given source. + * Then return optionally unit associated with given source. */ protected[interactive] def getUnit(s: SourceFile): Option[RichCompilationUnit] = { toBeRemoved.synchronized { diff --git a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala index b4b2f097d2..74a23d119d 100644 --- a/src/compiler/scala/tools/nsc/interpreter/ILoop.scala +++ b/src/compiler/scala/tools/nsc/interpreter/ILoop.scala @@ -682,7 +682,7 @@ class ILoop(in0: Option[BufferedReader], protected val out: PrintWriter) } def transcript(start: String) = { - // Printing this message doesn't work very well becaues it's buried in the + // Printing this message doesn't work very well because it's buried in the // transcript they just pasted. Todo: a short timer goes off when // lines stop coming which tells them to hit ctrl-D. // diff --git a/src/compiler/scala/tools/nsc/io/Lexer.scala b/src/compiler/scala/tools/nsc/io/Lexer.scala index 262aac7809..8f103f9b98 100644 --- a/src/compiler/scala/tools/nsc/io/Lexer.scala +++ b/src/compiler/scala/tools/nsc/io/Lexer.scala @@ -30,10 +30,10 @@ object Lexer { /** A subclass of token representing integer literals */ case class IntLit(override val str: String) extends Token(str) - /** A subclass of token representaing floating point literals */ + /** A subclass of token representing floating point literals */ case class FloatLit(override val str: String) extends Token(str) - /** A subclass of token represenating string literals */ + /** A subclass of token representing string literals */ case class StringLit(override val str: String) extends Token(str) { override def toString = quoted(str) } diff --git a/src/compiler/scala/tools/nsc/io/Pickler.scala b/src/compiler/scala/tools/nsc/io/Pickler.scala index 78c1369b64..fe9aa3b9c0 100644 --- a/src/compiler/scala/tools/nsc/io/Pickler.scala +++ b/src/compiler/scala/tools/nsc/io/Pickler.scala @@ -5,7 +5,7 @@ import Lexer._ import java.io.Writer /** An abstract class for writing and reading Scala objects to and - * from a legible representation. The presesentation follows the folloing grammar: + * from a legible representation. The presesentation follows the following grammar: * {{{ * Pickled = `true' | `false' | `null' | NumericLit | StringLit | * Labelled | Pickled `,' Pickled diff --git a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala index 5772d9f7b1..87398e4117 100644 --- a/src/compiler/scala/tools/nsc/settings/MutableSettings.scala +++ b/src/compiler/scala/tools/nsc/settings/MutableSettings.scala @@ -382,7 +382,7 @@ class MutableSettings(val errorFn: String => Unit) extends AbsSettings with Scal // Helper to validate an input private def isInputValid(k: Int): Boolean = (min <= k) && (k <= max) - // Helper to generate a textual explaination of valid inputs + // Helper to generate a textual explanation of valid inputs private def getValidText: String = (min, max) match { case (IntMin, IntMax) => "can be any integer" case (IntMin, x) => "must be less than or equal to "+x diff --git a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala index b2a4b34b32..53b4f0dac6 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Implicits.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Implicits.scala @@ -1117,7 +1117,7 @@ trait Implicits { object ImplicitNotFoundMsg { def unapply(sym: Symbol): Option[(Message)] = sym.implicitNotFoundMsg map (m => (new Message(sym, m))) - // check the message's syntax: should be a string literal that may contain occurences of the string "${X}", + // check the message's syntax: should be a string literal that may contain occurrences of the string "${X}", // where `X` refers to a type parameter of `sym` def check(sym: Symbol): Option[String] = sym.getAnnotation(ImplicitNotFoundClass).flatMap(_.stringArg(0) match { diff --git a/src/compiler/scala/tools/nsc/typechecker/Infer.scala b/src/compiler/scala/tools/nsc/typechecker/Infer.scala index 0b1a9f6187..6c27bcace6 100644 --- a/src/compiler/scala/tools/nsc/typechecker/Infer.scala +++ b/src/compiler/scala/tools/nsc/typechecker/Infer.scala @@ -1066,7 +1066,7 @@ trait Infer { } errorMessages.toList } - /** Substitite free type variables `undetparams' of polymorphic argument + /** Substitute free type variables `undetparams' of polymorphic argument * expression `tree', given two prototypes `strictPt', and `lenientPt'. * `strictPt' is the first attempt prototype where type parameters * are left unchanged. `lenientPt' is the fall-back prototype where type @@ -1113,7 +1113,7 @@ trait Infer { } } - /** Substitite free type variables `undetparams' of polymorphic argument + /** Substitute free type variables `undetparams' of polymorphic argument * expression <code>tree</code> to `targs', Error if `targs' is null * * @param tree ... @@ -1195,7 +1195,7 @@ trait Infer { tp } - /** Substitite free type variables <code>undetparams</code> of type constructor + /** Substitute free type variables <code>undetparams</code> of type constructor * <code>tree</code> in pattern, given prototype <code>pt</code>. * * @param tree ... |