mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
[fsharp/en] typos
dont -> don’t defintion -> definition
This commit is contained in:
parent
75d8b7a205
commit
9b7d5bee95
@ -346,7 +346,7 @@ module DataTypeExamples =
|
||||
let trySendEmail email =
|
||||
match email with // use pattern matching
|
||||
| ValidEmailAddress address -> () // send
|
||||
| InvalidEmailAddress address -> () // dont send
|
||||
| InvalidEmailAddress address -> () // don't send
|
||||
|
||||
// The combination of union types and record types together
|
||||
// provide a great foundation for domain driven design.
|
||||
@ -426,7 +426,7 @@ module ActivePatternExamples =
|
||||
// -----------------------------------
|
||||
|
||||
// You can create partial matching patterns as well
|
||||
// Just use underscore in the defintion, and return Some if matched.
|
||||
// Just use underscore in the definition, and return Some if matched.
|
||||
let (|MultOf3|_|) i = if i % 3 = 0 then Some MultOf3 else None
|
||||
let (|MultOf5|_|) i = if i % 5 = 0 then Some MultOf5 else None
|
||||
|
||||
@ -627,7 +627,3 @@ module NetCompatibilityExamples =
|
||||
For more demonstrations of F#, go to the [Try F#](http://www.tryfsharp.org/Learn) site, or my [why use F#](http://fsharpforfunandprofit.com/why-use-fsharp/) series.
|
||||
|
||||
Read more about F# at [fsharp.org](http://fsharp.org/).
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user