summaryrefslogtreecommitdiffhomepage
path: root/fsharp.html.markdown
diff options
context:
space:
mode:
authorDennis Keller <dk.denniskeller@gmail.com>2015-10-31 11:11:06 +0100
committerDennis Keller <dk.denniskeller@gmail.com>2015-10-31 11:11:06 +0100
commitca6ea580c7df41730fe547b0c35b3406dc9e590f (patch)
tree8f6daf20606ce1dd0e050c8b65ebcef452e20d0e /fsharp.html.markdown
parent2c99b0a9553f25a7ac43b04a14c4e2d78fe2b318 (diff)
parentedfc99e198fd2e87802ea81d6779fbadfab64919 (diff)
Merge remote-tracking branch 'upstream/master' into scala/de
Diffstat (limited to 'fsharp.html.markdown')
-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