@@ -2556,13 +2556,13 @@ The function does the following:
2556
2556
2557
2557
``` puppet
2558
2558
"\n\thello".lstrip()
2559
- camelcase ("\n\thello")
2559
+ lstrip ("\n\thello ")
2560
2560
```
2561
2561
Would both result in ` "hello" `
2562
2562
2563
2563
``` puppet
2564
- ["\n\thello", "\n\thi"].lstrip()
2565
- lstrip(["\n\thello", "\n\thi"])
2564
+ ["\n\thello ", "\n\thi "].lstrip()
2565
+ lstrip(["\n\thello ", "\n\thi "])
2566
2566
```
2567
2567
Would both result in ` ['hello', 'hi'] `
2568
2568
@@ -4325,14 +4325,14 @@ The function does the following:
4325
4325
* An error is raised for all other data types.
4326
4326
4327
4327
``` puppet
4328
- "hello\n\t".lstrip ()
4329
- camelcase(" hello\n\t")
4328
+ "hello\n\t".rstrip ()
4329
+ rstrip(" hello\n\t")
4330
4330
```
4331
4331
Would both result in ` "hello" `
4332
4332
4333
4333
``` puppet
4334
- ["hello\n\t", "hi\n\t"].lstrip ()
4335
- lstrip (["hello\n\t", "hi\n\t"])
4334
+ [" hello\n\t", " hi\n\t"].rstrip ()
4335
+ rstrip ([" hello\n\t", " hi\n\t"])
4336
4336
```
4337
4337
Would both result in ` ['hello', 'hi'] `
4338
4338
@@ -4800,14 +4800,14 @@ The function does the following:
4800
4800
* An error is raised for all other data types.
4801
4801
4802
4802
``` puppet
4803
- " hello\n\t".lstrip ()
4804
- camelcase (" hello\n\t")
4803
+ " hello\n\t".strip ()
4804
+ strip (" hello\n\t")
4805
4805
```
4806
4806
Would both result in ` "hello" `
4807
4807
4808
4808
``` puppet
4809
- [" hello\n\t", " hi\n\t"].lstrip ()
4810
- lstrip ([" hello\n\t", " hi\n\t"])
4809
+ [" hello\n\t", " hi\n\t"].strip ()
4810
+ strip ([" hello\n\t", " hi\n\t"])
4811
4811
```
4812
4812
Would both result in ` ['hello', 'hi'] `
4813
4813
@@ -4887,7 +4887,7 @@ $data = {a => { b => [{x => 10, y => 20}, {not_x => 100, why => 200}]}}
4887
4887
notice $data.dig(a, b, 1, x).then |$x| { $x * 2 }
4888
4888
```
4889
4889
4890
- Which would notice ` undef ` since the last lookup of 'x' results in ` undef ` which
4890
+ Which would notice ` undef ` since the last up of 'x' results in ` undef ` which
4891
4891
is returned (without calling the lambda given to the ` then ` function).
4892
4892
4893
4893
As a result there is no need for conditional logic or a temporary (non local)
0 commit comments