Skip to content

Commit 0309d9c

Browse files
committed
Merge branch 'minor-doc-fixup-assertions-example' of https://github.com/mkows/scalatest into 3.1.x
2 parents 7301c53 + 444218b commit 0309d9c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scalatest.dotty/src/main/scala/org/scalatest/Assertions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ import ArrayHelper.deep
129129
*
130130
* <pre class="stHighlight">
131131
* val attempted = 2
132-
* assert(attempted == 1, "Execution was attempted " + left + " times instead of 1 time")
132+
* assert(attempted == 1, "Execution was attempted " + attempted + " times instead of 1 time")
133133
* </pre>
134134
*
135135
* <p>

scalatest/src/main/scala/org/scalatest/Assertions.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ import org.scalactic.anyvals.NonEmptyArray
126126
*
127127
* <pre class="stHighlight">
128128
* val attempted = 2
129-
* assert(attempted == 1, "Execution was attempted " + left + " times instead of 1 time")
129+
* assert(attempted == 1, "Execution was attempted " + attempted + " times instead of 1 time")
130130
* </pre>
131131
*
132132
* <p>

0 commit comments

Comments
 (0)