Skip to content

Commit f76c139

Browse files
author
Dean Wampler
committed
Fixed typos
1 parent 034264d commit f76c139

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/scala/progscala3/meta/Invariant1.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ object invariant1:
66

77
/**
88
* Throw an exception if the predicate is false before the block is
9-
* evaluatad, then evaluate the block, then check the predicate again.
9+
* evaluated, then evaluate the block, then check the predicate again.
1010
* If all predicate checks pass, then return the block's value.
1111
*/
1212
inline def apply[T]( // <2>

src/script/scala/progscala3/contexts/GivenImports.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ object O1:
1313
// tag::imports[]
1414
import O1.* // Import everything EXCEPT the givens, c1 and c2
1515
import O1.given // Import ONLY the givens (of type C1 and C2)
16-
import O1.{given, *} // Import everything, givens and non-givens in O1
16+
import O1.{given, *} // Import everything, givens and nongivens in O1
1717
import O1.{given C1} // Import just the given of type C1
1818
import O1.c2 // Import just the given c2 of type C2
1919
// end::imports[]

0 commit comments

Comments
 (0)