diff options
author | Thijs Schreijer <thijs@thijsschreijer.nl> | 2021-08-18 22:33:31 +0300 |
---|---|---|
committer | Thijs Schreijer <thijs@thijsschreijer.nl> | 2021-08-18 22:37:47 +0300 |
commit | e3712f00fae09a166dd62540b677600165d5bcd7 (patch) | |
tree | b4932daba92f3396acbceb498dce828a787081cc /docs | |
parent | c8f6cdc0a1082df49f3dbb13029747ea56ba8dff (diff) |
release 1.11.0 docs1.11.0
Diffstat (limited to 'docs')
-rw-r--r-- | docs/index.html | 2 | ||||
-rw-r--r-- | docs/libraries/pl.types.html | 2 | ||||
-rw-r--r-- | docs/libraries/pl.utils.html | 13 |
3 files changed, 9 insertions, 8 deletions
diff --git a/docs/index.html b/docs/index.html index ec08e4d..b7e9465 100644 --- a/docs/index.html +++ b/docs/index.html @@ -114,7 +114,7 @@ <div id="content"> - <h2>Penlight Lua Libraries 1.10.0</h2> + <h2>Penlight Lua Libraries 1.11.0</h2> <p>Penlight is a set of pure Lua libraries for making it easier to work with common tasks like iterating over directories, reading configuration files and the like. Provides functional operations on tables and sequences. Visit the <a href="https://github.com/lunarmodules/Penlight">GitHub project</a> to review the code or file issues. Skip to the <a href="manual/01-introduction.md.html#">introduction</a>.</p> <h2>Libraries</h2> diff --git a/docs/libraries/pl.types.html b/docs/libraries/pl.types.html index 8984704..252005e 100644 --- a/docs/libraries/pl.types.html +++ b/docs/libraries/pl.types.html @@ -288,7 +288,7 @@ <ul> <li><code>nil</code></li> - <li>a table with out any items (key-value pairs or indexes)</li> + <li>a table without any items (key-value pairs or indexes)</li> <li>a string with no content ("")</li> <li>not a nil/table/string</li> </ul> diff --git a/docs/libraries/pl.utils.html b/docs/libraries/pl.utils.html index 35c9419..ee1773a 100644 --- a/docs/libraries/pl.utils.html +++ b/docs/libraries/pl.utils.html @@ -1302,7 +1302,7 @@ string_lambda <span class="string">'_+1'</span> (<span class="number">2</span>) <h3>Parameters:</h3> <ul> <li><span class="parameter">func</span> - a callback with signature: <code>function(msg, trace)</code> both arguments are strings. + a callback with signature: <code>function(msg, trace)</code> both arguments are strings, the latter being optional. </li> </ul> @@ -1317,7 +1317,7 @@ string_lambda <span class="string">'_+1'</span> (<span class="number">2</span>) <ul> <pre class="example"><span class="comment">-- write to the Nginx logs with OpenResty </span>utils.set_deprecation_func(<span class="keyword">function</span>(msg, trace) - ngx.log(ngx.WARN, msg, <span class="string">" "</span>, trace) + ngx.log(ngx.WARN, msg, (trace <span class="keyword">and</span> (<span class="string">" "</span> .. trace) <span class="keyword">or</span> <span class="keyword">nil</span>)) <span class="keyword">end</span>) <span class="comment">-- disable deprecation warnings @@ -1359,10 +1359,11 @@ string_lambda <span class="string">'_+1'</span> (<span class="number">2</span>) </span> <span class="keyword">function</span> stringx.islower(str) raise_deprecation { - source = <span class="string">"Penlight "</span> .. utils._VERSION, <span class="comment">-- optional -</span> message = <span class="string">"function 'islower' was renamed to 'is_lower'"</span> <span class="comment">-- required -</span> version_removed = <span class="string">"2.0.0"</span>, <span class="comment">-- optional -</span> deprecated_after = <span class="string">"1.2.3"</span>, <span class="comment">-- optional + source = <span class="string">"Penlight "</span> .. utils._VERSION, <span class="comment">-- optional +</span> message = <span class="string">"function 'islower' was renamed to 'is_lower'"</span>, <span class="comment">-- required +</span> version_removed = <span class="string">"2.0.0"</span>, <span class="comment">-- optional +</span> deprecated_after = <span class="string">"1.2.3"</span>, <span class="comment">-- optional +</span> no_trace = <span class="keyword">true</span>, <span class="comment">-- optional </span> } <span class="keyword">return</span> stringx.is_lower(str) <span class="keyword">end</span> |