Skip to content

Commit cc38962

Browse files
authored
doc fix, removed repeated use of the word with (#21915)
2 parents d7caddd + a62a636 commit cc38962

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

Diff for: .github/workflows/ci.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ jobs:
11691169
needs: [build-msi-package]
11701170
with:
11711171
# Ensure that version starts with prefix 3.
1172-
# In the future it can be adapted to compare with with git tag or version set in the project/Build.scala
1172+
# In the future it can be adapted to compare with git tag or version set in the project/Build.scala
11731173
version: "3."
11741174
java-version: 8
11751175

Diff for: compiler/src/dotty/tools/backend/jvm/BCodeBodyBuilder.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1143,7 +1143,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
11431143
* - Every time when generating an ATHROW, a new basic block is started.
11441144
* - During classfile writing, such basic blocks are found to be dead: no branches go there
11451145
* - Eliminating dead code would probably require complex shifts in the output byte buffer
1146-
* - But there's an easy solution: replace all code in the dead block with with
1146+
* - But there's an easy solution: replace all code in the dead block with
11471147
* `nop; nop; ... nop; athrow`, making sure the bytecode size stays the same
11481148
* - The corresponding stack frame can be easily generated: on entering a dead the block,
11491149
* the frame requires a single Throwable on the stack.

Diff for: compiler/src/dotty/tools/dotc/printing/Printer.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ abstract class Printer {
7171
def changePrec(prec: Precedence)(op: => Text): Text =
7272
if (prec < this.prec) atPrec(prec) ("(" ~ op ~ ")") else atPrec(prec)(op)
7373

74-
/** The name, possibly with with namespace suffix if debugNames is set:
74+
/** The name, possibly with namespace suffix if debugNames is set:
7575
* /L for local names, /V for other term names, /T for type names
7676
*/
7777
def nameString(name: Name): String

Diff for: compiler/src/dotty/tools/dotc/typer/Applications.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1348,7 +1348,7 @@ trait Applications extends Compatibility {
13481348
tree
13491349
}
13501350

1351-
/** Is `tp` a unary function type or an overloaded type with with only unary function
1351+
/** Is `tp` a unary function type or an overloaded type with only unary function
13521352
* types as alternatives?
13531353
*/
13541354
def isUnary(tp: Type)(using Context): Boolean = tp match {

Diff for: docs/_docs/reference/experimental/better-fors.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The `betterFors` language extension improves the usability of `for`-comprehensio
88

99
The extension is enabled by the language import `import scala.language.experimental.betterFors` or by setting the command line option `-language:experimental.betterFors`.
1010

11-
The biggest user facing change is the new ability to start `for`-comprehensions with with aliases. This means that the following previously invalid code is now valid:
11+
The biggest user facing change is the new ability to start `for`-comprehensions with aliases. This means that the following previously invalid code is now valid:
1212

1313
```scala
1414
for

Diff for: tests/pos-with-compiler-cc/backend/jvm/BCodeBodyBuilder.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1103,7 +1103,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
11031103
* - Every time when generating an ATHROW, a new basic block is started.
11041104
* - During classfile writing, such basic blocks are found to be dead: no branches go there
11051105
* - Eliminating dead code would probably require complex shifts in the output byte buffer
1106-
* - But there's an easy solution: replace all code in the dead block with with
1106+
* - But there's an easy solution: replace all code in the dead block with
11071107
* `nop; nop; ... nop; athrow`, making sure the bytecode size stays the same
11081108
* - The corresponding stack frame can be easily generated: on entering a dead the block,
11091109
* the frame requires a single Throwable on the stack.

Diff for: tests/pos-with-compiler-cc/dotc/printing/Printer.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ abstract class Printer extends Pure {
7070
def changePrec(prec: Precedence)(op: => Text): Text =
7171
if (prec < this.prec) atPrec(prec) ("(" ~ op ~ ")") else atPrec(prec)(op)
7272

73-
/** The name, possibly with with namespace suffix if debugNames is set:
73+
/** The name, possibly with namespace suffix if debugNames is set:
7474
* /L for local names, /V for other term names, /T for type names
7575
*/
7676
def nameString(name: Name): String

Diff for: tests/pos-with-compiler-cc/dotc/typer/Applications.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -1182,7 +1182,7 @@ trait Applications extends Compatibility {
11821182
tree
11831183
}
11841184

1185-
/** Is `tp` a unary function type or an overloaded type with with only unary function
1185+
/** Is `tp` a unary function type or an overloaded type with only unary function
11861186
* types as alternatives?
11871187
*/
11881188
def isUnary(tp: Type)(using Context): Boolean = tp match {

0 commit comments

Comments
 (0)