Skip to content

Commit

Permalink
Update DomainPrimitiveTypes.fs
Browse files Browse the repository at this point in the history
  • Loading branch information
swlaschin committed Jun 2, 2014
1 parent e985f9f commit f62a2d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/FsRopExample/DomainPrimitiveTypes.fs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ module EmailAddress =
module CustomerId =
type T = CustomerId of int

// Create a CustomerId from a nullable int
// I'm using nullable just to demonstrate how to use it as input
// Create a CustomerId from an int
// It must be positive.
let create (i: int) =
if i < 1 then
fail MustBePositiveInteger
Expand Down

0 comments on commit f62a2d6

Please sign in to comment.