@@ -2556,13 +2556,13 @@ The function does the following:
25562556
25572557``` puppet
25582558"\n\thello".lstrip()
2559- camelcase ("\n\thello")
2559+ lstrip ("\n\thello ")
25602560```
25612561Would both result in ` "hello" `
25622562
25632563``` 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 "])
25662566```
25672567Would both result in ` ['hello', 'hi'] `
25682568
@@ -4325,14 +4325,14 @@ The function does the following:
43254325* An error is raised for all other data types.
43264326
43274327``` puppet
4328- "hello\n\t".lstrip ()
4329- camelcase(" hello\n\t")
4328+ "hello\n\t".rstrip ()
4329+ rstrip(" hello\n\t")
43304330```
43314331Would both result in ` "hello" `
43324332
43334333``` 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"])
43364336```
43374337Would both result in ` ['hello', 'hi'] `
43384338
@@ -4800,14 +4800,14 @@ The function does the following:
48004800* An error is raised for all other data types.
48014801
48024802``` puppet
4803- " hello\n\t".lstrip ()
4804- camelcase (" hello\n\t")
4803+ " hello\n\t".strip ()
4804+ strip (" hello\n\t")
48054805```
48064806Would both result in ` "hello" `
48074807
48084808``` 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"])
48114811```
48124812Would both result in ` ['hello', 'hi'] `
48134813
@@ -4887,7 +4887,7 @@ $data = {a => { b => [{x => 10, y => 20}, {not_x => 100, why => 200}]}}
48874887notice $data.dig(a, b, 1, x).then |$x| { $x * 2 }
48884888```
48894889
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
48914891is returned (without calling the lambda given to the ` then ` function).
48924892
48934893As a result there is no need for conditional logic or a temporary (non local)
0 commit comments