Skip to content

Commit

Permalink
doc: fix duplicate "the" in sequence dictionary docstrings (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
nh13 authored Jul 15, 2024
1 parent 4331e0d commit fee6f52
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ case class SequenceMetadata private[fasta]
this.get(Keys.Topology).flatMap(tp => Topology.values.find(_.name == tp))
}

/** Returns true if the the sequences share a common reference name (including aliases), have the same length, and
/** Returns true if the sequences share a common reference name (including aliases), have the same length, and
* the same MD5 if both have MD5s. */
def sameAs(that: SequenceMetadata): Boolean = {
if (this.length != that.length) false
Expand Down Expand Up @@ -267,7 +267,7 @@ case class SequenceDictionary(infos: IndexedSeq[SequenceMetadata]) extends Itera
override def iterator: Iterator[SequenceMetadata] = this.infos.iterator
def length: Int = this.infos.length

/** Returns true if the the sequences share a common reference name (including aliases), have the same length, and
/** Returns true if the sequences share a common reference name (including aliases), have the same length, and
* the same MD5 if both have MD5s. */
def sameAs(that: SequenceDictionary): Boolean = {
this.length == that.length && this.zip(that).forall { case (thisInfo, thatInfo) => thisInfo.sameAs(thatInfo) }
Expand Down Expand Up @@ -350,4 +350,4 @@ object Topology extends FgBioEnum[Topology] {
case object Linear extends Topology
/** The sequence is circular. */
case object Circular extends Topology
}
}

0 comments on commit fee6f52

Please sign in to comment.