summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorven <vendethiel@hotmail.fr>2015-10-28 09:20:25 +0100
committerven <vendethiel@hotmail.fr>2015-10-28 09:20:25 +0100
commitb5fb3519729864644566ac00d12a6e5f7e9ef75e (patch)
tree4abe1a8c4545fb0f3295b25daeb3fb65959d0005
parentc3a66e60a61de0b98ea3e86568dfddf76eae1069 (diff)
parent3cf044d1232f605f99df148dfc55e712020481c2 (diff)
Merge pull request #1808 from sholland1/master
[fsharp/en] correct a few simple mistakes
-rw-r--r--fsharp.html.markdown6
1 files changed, 3 insertions, 3 deletions
diff --git a/fsharp.html.markdown b/fsharp.html.markdown
index 76318d7d..b5c47ed7 100644
--- a/fsharp.html.markdown
+++ b/fsharp.html.markdown
@@ -248,7 +248,7 @@ module SequenceExamples =
// sequences can use yield and
// can contain subsequences
let strange = seq {
- // "yield! adds one element
+ // "yield" adds one element
yield 1; yield 2;
// "yield!" adds a whole subsequence
@@ -297,7 +297,7 @@ module DataTypeExamples =
let person1 = {First="John"; Last="Doe"}
// Pattern match to unpack
- let {First=first} = person1 //sets first="john"
+ let {First=first} = person1 //sets first="John"
// ------------------------------------
// Union types (aka variants) have a set of choices
@@ -426,7 +426,7 @@ module ActivePatternExamples =
// -----------------------------------
// You can create partial matching patterns as well
- // Just use undercore in the defintion, and return Some if matched.
+ // Just use underscore in the defintion, 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