Skip to content

Commit c00abfe

Browse files
author
Dean Wampler
committed
Deleted obsolete and misleading comment, fixed typo.
1 parent 7f4e14c commit c00abfe

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

src/main/scala/progscala3/forcomps/LoginFormValidatorNec.scala

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,13 +39,6 @@ object LoginFormValidatorNec:
3939
}
4040
end LoginFormValidatorNec
4141

42-
/**
43-
* This method uses the matching clauses shown rather something like this:
44-
* assert(LoginFormValidatorNec("123 45", "678 90") ==
45-
* Invalid(Chain(BadCharacters("user name"), BadCharacters("password"))))
46-
* This is necessary because we use -language:strictEquality, which causes
47-
* these == expressions to fail compilation!
48-
*/
4942
@main def TryLoginFormValidatorNec =
5043
import LoginFormValidatorNec.*
5144
assert(LoginFormValidatorNec("", "") ==

src/script/scala/progscala3/forcomps/ForEithersCombinators.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ result2
99
var r1 = 0
1010
result1.foreach(i => r1 = i * 2)
1111
var r2 = 0
12-
result2.foreach(i => r1 = i * 2)
12+
result2.foreach(i => r2 = i * 2)
1313

1414
val r3 = result1.map(_ * 2)
1515
val r4 = result2.map(_ * 2)

0 commit comments

Comments
 (0)