Skip to content
This repository was archived by the owner on Sep 1, 2020. It is now read-only.

Commit 3fc4dd8

Browse files
committed
Fix 27 typos (p-r)
1 parent c8fbc41 commit 3fc4dd8

File tree

21 files changed

+26
-26
lines changed

21 files changed

+26
-26
lines changed

src/compiler/scala/tools/nsc/backend/icode/Opcodes.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ trait Opcodes { self: ICodes =>
8686
* Each case subclass will represent a specific operation.
8787
*/
8888
abstract class Instruction extends Cloneable {
89-
// Vlad: I used these for checking the quality of the implementation, and we should regularely run a build with them
89+
// Vlad: I used these for checking the quality of the implementation, and we should regularly run a build with them
9090
// enabled. But for production these should definitely be disabled, unless we enjoy getting angry emails from Greg :)
9191
//if (!this.isInstanceOf[opcodes.LOAD_EXCEPTION])
9292
// assert(consumed == consumedTypes.length)

src/compiler/scala/tools/nsc/backend/jvm/BTypesFromSymbols.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ class BTypesFromSymbols[G <: Global](val global: G) extends BTypes {
355355
// See comment in BTypes, when is a class marked static in the InnerClass table.
356356
val isStaticNestedClass = isOriginallyStaticOwner(innerClassSym.originalOwner)
357357

358-
// After lambdalift (which is where we are), the rawowoner field contains the enclosing class.
358+
// After lambdalift (which is where we are), the rawowner field contains the enclosing class.
359359
val enclosingClass = {
360360
// (1) Example java source: class C { static class D { } }
361361
// The Scala compiler creates a class and a module symbol for C. Because D is a static

src/compiler/scala/tools/nsc/typechecker/Namers.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ trait Namers extends MethodSynthesis {
204204
}
205205

206206
// FIXME - this logic needs to be thoroughly explained
207-
// and justified. I know it's wrong with repect to package
207+
// and justified. I know it's wrong with respect to package
208208
// objects, but I think it's also wrong in other ways.
209209
protected def conflict(newS: Symbol, oldS: Symbol) = (
210210
( !oldS.isSourceMethod
@@ -1106,7 +1106,7 @@ trait Namers extends MethodSynthesis {
11061106
* As a first side effect, this method assigns a MethodType constructed using this
11071107
* return type to `meth`. This allows omitting the result type for recursive methods.
11081108
*
1109-
* As another side effect, this method also assigns paramter types from the overridden
1109+
* As another side effect, this method also assigns parameter types from the overridden
11101110
* method to parameters of `meth` that have missing types (the parser accepts missing
11111111
* parameter types under -Yinfer-argument-types).
11121112
*/

src/library/scala/collection/generic/MutableSortedSetFactory.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ abstract class MutableSortedSetFactory[CC[A] <: mutable.SortedSet[A] with Sorted
2424

2525
/**
2626
* mutable.SetBuilder uses '+' which is not a primitive for anything extending mutable.SetLike,
27-
* this causes serious perfomances issues since each time 'elems = elems + x'
27+
* this causes serious performance issues since each time 'elems = elems + x'
2828
* is evaluated elems is cloned (which is O(n)).
2929
*
3030
* Fortunately GrowingBuilder comes to rescue.

src/manual/scala/tools/docutil/ManMaker.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class ManMaker extends Task {
1818
/** The directory to put html pages in */
1919
private var htmlout: Option[File] = None
2020

21-
/** The directory to put man pags in */
21+
/** The directory to put man pages in */
2222
private var manout: Option[File] = None
2323

2424

src/reflect/scala/reflect/api/Internals.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ trait Internals { self: Universe =>
114114
def substituteTypes(tree: Tree, from: List[Symbol], to: List[Type]): Tree
115115

116116
/** Substitute given tree `to` for occurrences of nodes that represent
117-
* `C.this`, where `C` referes to the given class `clazz`.
117+
* `C.this`, where `C` refers to the given class `clazz`.
118118
*/
119119
def substituteThis(tree: Tree, clazz: Symbol, to: Tree): Tree
120120

src/reflect/scala/reflect/internal/Types.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2588,7 +2588,7 @@ trait Types
25882588
* based on the bounds of the type parameters of the quantified type
25892589
* In Scala syntax, given a java-defined class C[T <: String], the existential type C[_]
25902590
* is improved to C[_ <: String] before skolemization, which captures (get it?) what Java does:
2591-
* enter the type paramers' bounds into the context when checking subtyping/type equality of existential types
2591+
* enter the type parameters' bounds into the context when checking subtyping/type equality of existential types
25922592
*
25932593
* Also tried doing this once during class file parsing or when creating the existential type,
25942594
* but that causes cyclic errors because it happens too early.
@@ -4263,7 +4263,7 @@ trait Types
42634263
matchesType(res1, res2.substSym(tparams2, tparams1), alwaysMatchSimple)
42644264
(tp1, tp2) match {
42654265
case (MethodType(params1, res1), MethodType(params2, res2)) =>
4266-
params1.length == params2.length && // useful pre-secreening optimization
4266+
params1.length == params2.length && // useful pre-screening optimization
42674267
matchingParams(params1, params2, tp1.isInstanceOf[JavaMethodType], tp2.isInstanceOf[JavaMethodType]) &&
42684268
matchesType(res1, res2, alwaysMatchSimple) &&
42694269
tp1.isImplicit == tp2.isImplicit

src/reflect/scala/reflect/runtime/SymbolTable.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package reflect
33
package runtime
44

55
/**
6-
* This symbol table trait fills in the definitions so that class information is obtained by refection.
6+
* This symbol table trait fills in the definitions so that class information is obtained by reflection.
77
* It can be used either from a reflexive universe (class scala.reflect.runtime.JavaUniverse), or else from
88
* a runtime compiler that uses reflection to get a class information (class scala.tools.reflect.ReflectGlobal)
99
*/

src/scaladoc/scala/tools/nsc/doc/base/MemberLookupBase.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ trait MemberLookupBase {
114114
// Maintaining compatibility with previous links is a bit tricky here:
115115
// we have a preference for term names for all terms except for the last, where we prefer a class:
116116
// How to do this:
117-
// - at each step we do a DFS search with the prefered strategy
117+
// - at each step we do a DFS search with the preferred strategy
118118
// - if the search doesn't return any members, we backtrack on the last decision
119119
// * we look for terms with the last member's name
120120
// * we look for types with the same name, all the way up

src/scaladoc/scala/tools/nsc/doc/base/comment/Comment.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ abstract class Comment {
9393
def todo: List[Body]
9494

9595
/** Whether the entity is deprecated. Using the `@deprecated` Scala attribute
96-
* is prefereable to using this Scaladoc tag. */
96+
* is preferable to using this Scaladoc tag. */
9797
def deprecated: Option[Body]
9898

9999
/** An additional note concerning the contract of the entity. */

src/scaladoc/scala/tools/nsc/doc/html/page/diagram/DiagramStats.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ object DiagramStats {
3636
private[this] val filterTrack = new TimeTracker("diagrams model filtering")
3737
private[this] val modelTrack = new TimeTracker("diagrams model generation")
3838
private[this] val dotGenTrack = new TimeTracker("dot diagram generation")
39-
private[this] val dotRunTrack = new TimeTracker("dot process runnning")
39+
private[this] val dotRunTrack = new TimeTracker("dot process running")
4040
private[this] val svgTrack = new TimeTracker("svg processing")
4141
private[this] var brokenImages = 0
4242
private[this] var fixedImages = 0

src/scaladoc/scala/tools/nsc/doc/model/Entity.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ trait MemberEntity extends Entity {
183183
/** Indicates whether the member is inherited by implicit conversion */
184184
def isImplicitlyInherited: Boolean
185185

186-
/** Indicates whether there is another member with the same name in the template that will take precendence */
186+
/** Indicates whether there is another member with the same name in the template that will take precedence */
187187
def isShadowedImplicit: Boolean
188188

189189
/** Indicates whether there are other implicitly inherited members that have similar signatures (and thus they all

src/scaladoc/scala/tools/nsc/doc/model/ModelFactory.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ class ModelFactory(val global: Global, val settings: doc.Settings) {
478478
override lazy val comment = {
479479
def nonRootTemplate(sym: Symbol): Option[DocTemplateImpl] =
480480
if (sym eq RootPackage) None else findTemplateMaybe(sym)
481-
/* Variable precendence order for implicitly added members: Take the variable definitions from ...
481+
/* Variable precedence order for implicitly added members: Take the variable definitions from ...
482482
* 1. the target of the implicit conversion
483483
* 2. the definition template (owner)
484484
* 3. the current template
@@ -994,7 +994,7 @@ class ModelFactory(val global: Global, val settings: doc.Settings) {
994994
// pruning modules that shouldn't be documented
995995
// Why Symbol.isInitialized? Well, because we need to avoid exploring all the space available to scaladoc
996996
// from the classpath -- scaladoc is a hog, it will explore everything starting from the root package unless we
997-
// somehow prune the tree. And isInitialized is a good heuristic for prunning -- if the package was not explored
997+
// somehow prune the tree. And isInitialized is a good heuristic for pruning -- if the package was not explored
998998
// during typer and refchecks, it's not necessary for the current application and there's no need to explore it.
999999
(!sym.isModule || sym.moduleClass.isInitialized) &&
10001000
// documenting only public and protected members

src/scaladoc/scala/tools/nsc/doc/model/ModelFactoryTypeSupport.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ trait ModelFactoryTypeSupport {
112112
def needsPrefix: Boolean = {
113113
if ((owner != bSym.owner || preSym.isRefinementClass) && (normalizeTemplate(owner) != inTpl.sym))
114114
return true
115-
// don't get tricked into prefixng method type params and existentials:
115+
// don't get tricked into prefixing method type params and existentials:
116116
// I tried several tricks BUT adding the method for which I'm creating the type => that simply won't scale,
117117
// as ValueParams are independent of their parent member, and I really don't want to add this information to
118118
// all terms, as we're already over the allowed memory footprint

test/disabled/pos/spec-List.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ case object Nil extends List[Nothing] {
438438
throw new NoSuchElementException("head of empty list")
439439
override def tail: List[Nothing] =
440440
throw new NoSuchElementException("tail of empty list")
441-
// Removal of equals method here might lead to an infinite recusion similar to IntMap.equals.
441+
// Removal of equals method here might lead to an infinite recursion similar to IntMap.equals.
442442
override def equals(that: Any) = that match {
443443
case that1: Seq[_] => that1.isEmpty
444444
case _ => false

test/files/jvm/innerClassEnclMethodJavaReflection.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ object Test extends App {
88
// Some classes in scala-compiler.jar have references to jline / ant classes, which seem to be
99
// not on the classpath. We just skip over those classes.
1010
// PENDING: for now we also allow missing $anonfun classes: the optimizer may eliminate some closures
11-
// that are refferred to in EnclosingClass attributes. SI-9136
11+
// that are referred to in EnclosingClass attributes. SI-9136
1212
val allowedMissingPackages = Set("jline", "org.apache.tools.ant", "$anonfun")
1313

1414
def ok(t: Throwable) = {

test/files/neg/t8675b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object Test {
1313
// in the backend.
1414
//
1515
// This error is itself a regression (or at least a change) in 2.11.0-M7,
16-
// specifically in SI-7944. The type paramaters to the implicit view
16+
// specifically in SI-7944. The type parameters to the implicit view
1717
// `EngineTools1` are undetermined, and are now treated as type variables
1818
// in the expected type of the closure argument to `withFilter`.
1919
for (path: List[Any] <- (null : Engine1).asRequirement.pathsIncludingSelf.toList) {

test/files/pos/t8111.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ trait T {
77
foo((u: Unit) => ma)
88
foo(0, (u: Any) => ma) apply ()
99

10-
// crash due to side effects on the onwer of the symbol in the
10+
// crash due to side effects on the owner of the symbol in the
1111
// qualifier or arguments of the application during an abandoned
12-
// names/defaults transform. The code type checkes because of
13-
// autp-tupling which promotes and empty parmater list to `(): Unit`
12+
// names/defaults transform. The code type checks because of
13+
// auto-tupling which promotes an empty parameter list to `(): Unit`
1414
foo((u: Any) => ma)()
1515

1616
{{(u: Any) => ma}; this}.foo(0)()

test/files/run/t1987b/cce_test.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
package scales.xml
2-
//import scales.xml._ // using another pacakge and importing doesn't CCE
2+
//import scales.xml._ // using another package and importing doesn't CCE
33

44
object CCE_Test {
55
def main(args: Array[String]): Unit = {

test/files/run/t8893b.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ object Test {
55
def tick(i : Int): Unit =
66
if (i == 0) ()
77
else if (i == 42) {
8-
tick(0) /*not in tail posiiton*/
8+
tick(0) /*not in tail position*/
99
tick(i - 1)
1010
} else tick(i - 1)
1111

test/files/scalacheck/quasiquotes/ErrorProps.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ object ErrorProps extends QuasiquoteProperties("errors") {
162162
q"$n"
163163
""")
164164

165-
property("SI-8211: check unbound placeholder paremeters") = fails(
165+
property("SI-8211: check unbound placeholder parameters") = fails(
166166
"unbound placeholder parameter",
167167
"""
168168
q"_"

0 commit comments

Comments
 (0)