Skip to content

Commit

Permalink
doc fix, removed repeated use of the word with (#21915)
Browse files Browse the repository at this point in the history
  • Loading branch information
bracevac authored Nov 9, 2024
2 parents d7caddd + a62a636 commit cc38962
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -1169,7 +1169,7 @@ jobs:
needs: [build-msi-package]
with:
# Ensure that version starts with prefix 3.
# In the future it can be adapted to compare with with git tag or version set in the project/Build.scala
# In the future it can be adapted to compare with git tag or version set in the project/Build.scala
version: "3."
java-version: 8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1143,7 +1143,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
* - Every time when generating an ATHROW, a new basic block is started.
* - During classfile writing, such basic blocks are found to be dead: no branches go there
* - Eliminating dead code would probably require complex shifts in the output byte buffer
* - But there's an easy solution: replace all code in the dead block with with
* - But there's an easy solution: replace all code in the dead block with
* `nop; nop; ... nop; athrow`, making sure the bytecode size stays the same
* - The corresponding stack frame can be easily generated: on entering a dead the block,
* the frame requires a single Throwable on the stack.
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/printing/Printer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ abstract class Printer {
def changePrec(prec: Precedence)(op: => Text): Text =
if (prec < this.prec) atPrec(prec) ("(" ~ op ~ ")") else atPrec(prec)(op)

/** The name, possibly with with namespace suffix if debugNames is set:
/** The name, possibly with namespace suffix if debugNames is set:
* /L for local names, /V for other term names, /T for type names
*/
def nameString(name: Name): String
Expand Down
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/typer/Applications.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1348,7 +1348,7 @@ trait Applications extends Compatibility {
tree
}

/** Is `tp` a unary function type or an overloaded type with with only unary function
/** Is `tp` a unary function type or an overloaded type with only unary function
* types as alternatives?
*/
def isUnary(tp: Type)(using Context): Boolean = tp match {
Expand Down
2 changes: 1 addition & 1 deletion docs/_docs/reference/experimental/better-fors.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ The `betterFors` language extension improves the usability of `for`-comprehensio

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

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:
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:

```scala
for
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1103,7 +1103,7 @@ trait BCodeBodyBuilder extends BCodeSkelBuilder {
* - Every time when generating an ATHROW, a new basic block is started.
* - During classfile writing, such basic blocks are found to be dead: no branches go there
* - Eliminating dead code would probably require complex shifts in the output byte buffer
* - But there's an easy solution: replace all code in the dead block with with
* - But there's an easy solution: replace all code in the dead block with
* `nop; nop; ... nop; athrow`, making sure the bytecode size stays the same
* - The corresponding stack frame can be easily generated: on entering a dead the block,
* the frame requires a single Throwable on the stack.
Expand Down
2 changes: 1 addition & 1 deletion tests/pos-with-compiler-cc/dotc/printing/Printer.scala
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ abstract class Printer extends Pure {
def changePrec(prec: Precedence)(op: => Text): Text =
if (prec < this.prec) atPrec(prec) ("(" ~ op ~ ")") else atPrec(prec)(op)

/** The name, possibly with with namespace suffix if debugNames is set:
/** The name, possibly with namespace suffix if debugNames is set:
* /L for local names, /V for other term names, /T for type names
*/
def nameString(name: Name): String
Expand Down
2 changes: 1 addition & 1 deletion tests/pos-with-compiler-cc/dotc/typer/Applications.scala
Original file line number Diff line number Diff line change
Expand Up @@ -1182,7 +1182,7 @@ trait Applications extends Compatibility {
tree
}

/** Is `tp` a unary function type or an overloaded type with with only unary function
/** Is `tp` a unary function type or an overloaded type with only unary function
* types as alternatives?
*/
def isUnary(tp: Type)(using Context): Boolean = tp match {
Expand Down

0 comments on commit cc38962

Please sign in to comment.