Skip to content

Commit 6ab22e4

Browse files
nsajkoKristofferC
authored andcommitted
fix Markdown in the Lockable doc strings (#58603)
(cherry picked from commit 9da6455)
1 parent a6394cd commit 6ab22e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

base/lock.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,7 @@ macro lock_nofail(l, expr)
398398
end
399399

400400
"""
401-
Lockable(value, lock = ReentrantLock())
401+
Lockable(value, lock = ReentrantLock())
402402
403403
Creates a `Lockable` object that wraps `value` and
404404
associates it with the provided `lock`. This object
@@ -431,7 +431,7 @@ Lockable(value) = Lockable(value, ReentrantLock())
431431
getindex(l::Lockable) = (assert_havelock(l.lock); l.value)
432432

433433
"""
434-
lock(f::Function, l::Lockable)
434+
lock(f::Function, l::Lockable)
435435
436436
Acquire the lock associated with `l`, execute `f` with the lock held,
437437
and release the lock when `f` returns. `f` will receive one positional

0 commit comments

Comments
 (0)