Skip to content

Commit ecd141d

Browse files
jamadagnihsutter
andauthored
Docs: fix a few typos like lamba -> lambda (#1242)
* Docs: fix a few typos like lamba -> lambda * Update objects.md Signed-off-by: Herb Sutter <[email protected]> --------- Signed-off-by: Herb Sutter <[email protected]> Co-authored-by: Herb Sutter <[email protected]>
1 parent c7ffbf4 commit ecd141d

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

docs/cpp2/declarations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ We can illustrate this in two directions. First, let's start with a full functio
4848
f:(x: int = init) = { /*...*/ } // x is a parameter to the function
4949
f:(x: int = init) = statement; // same, { } is implicit
5050

51-
// Omit name => anonymous function (aka 'lamba')
51+
// Omit name => anonymous function (aka 'lambda')
5252
:(x: int = init) = { /*...*/ } // x is a parameter to the function
5353
:(x: int = init) = statement; // same, { } is implicit
5454

docs/cpp2/functions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ Next, `#!cpp -> _ =` (deduced return type) is the default for single-expression
451451
equals: (a, b) a == b;
452452
```
453453

454-
Finally, at expression scope (aka "lamba/temporary") functions/objects aren't named, and the trailing `;` is optional:
454+
Finally, at expression scope (aka "lambda/temporary") functions/objects aren't named, and the trailing `;` is optional:
455455

456456
``` cpp title="(not) 'equals': Identical meaning, but without a name as an unnamed function at expression scope"
457457
:(a, b) a == b

docs/cpp2/objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ f: () = {
7979
// ... no uses of buf here ...
8080
buf = some_calculated_value; // constructs (not assigns) buf
8181
// ...
82-
std::cout buf[0]; // ok, a has been initialized
82+
std::cout << buf[0]; // ok, a has been initialized
8383
}
8484

8585
g: () = {

docs/cpp2/types.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ All other `#!cpp operator=` functions are explicitly written, either by hand or
180180
181181
### <a id="memberwise-default"></a> Memberwise by default
182182

183-
All copy/move/comparison `#!cpp operator=` functions are memberwise by default in Cpp2. That includes when you write memberwise construction and assignment yourself.
183+
All copy/move/conversion `#!cpp operator=` functions are memberwise by default in Cpp2. That includes when you write memberwise construction and assignment yourself.
184184

185185
In a hand-written `#!cpp operator=`:
186186

include/cpp2util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1309,7 +1309,7 @@ class out {
13091309

13101310
//-----------------------------------------------------------------------
13111311
//
1312-
// CPP2_UFCS: Variadic macro generating a variadic lamba, oh my...
1312+
// CPP2_UFCS: Variadic macro generating a variadic lambda, oh my...
13131313
//
13141314
//-----------------------------------------------------------------------
13151315
//

0 commit comments

Comments
 (0)