Skip to content

Commit edd5059

Browse files
committed
minor doc tweaks.
1 parent 423c476 commit edd5059

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/ngx/balancer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ just specify the `nil` value for the corresponding argument (like the `connect_t
171171

172172
Zero and negative timeout values are not allowed.
173173

174-
You can specify millisecond precision by using floating point numbers like 0.001 (which means 1ms).
174+
You can specify millisecond precision in the timeout values by using floating point numbers like 0.001 (which means 1ms).
175175

176176
Returns `true` when the operation is successul; returns `nil` and a string describing the error
177177
otherwise.

lib/ngx/semaphore.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ sema:post(2) -- releases 2 resources
218218
[Back to TOC](#table-of-contents)
219219

220220
wait
221-
------------
221+
----
222222
**syntax:** *ok, err = sema:wait(timeout)*
223223

224224
**context:** *rewrite_by_lua*, access_by_lua*, content_by_lua*, ngx.timer.**
@@ -237,6 +237,8 @@ When the `timeout` argument is 0, it means "no wait", that is, when there is no
237237
"resources" for the current running "light thread", this `wait` function call returns immediately
238238
`nil` and the error string `"timeout"`.
239239

240+
You can specify millisecond precision in the timeout value by using floating point numbers like 0.001 (which means 1ms).
241+
240242
"Light threads" created by different contexts (like request handlers) can wait on the
241243
same semaphore instance without problem.
242244

0 commit comments

Comments
 (0)