Skip to content

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. */

0 commit comments

Comments
 (0)