Skip to content

Commit 9c02bf3

Browse files
nsajkoKristoffer Carlsson
authored andcommitted
fix Markdown in the Lockable doc strings (#58603)
(cherry picked from commit 9da6455)
1 parent 0aac5db commit 9c02bf3

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
@@ -295,7 +295,7 @@ macro lock_nofail(l, expr)
295295
end
296296

297297
"""
298-
Lockable(value, lock = ReentrantLock())
298+
Lockable(value, lock = ReentrantLock())
299299
300300
Creates a `Lockable` object that wraps `value` and
301301
associates it with the provided `lock`. This object
@@ -328,7 +328,7 @@ Lockable(value) = Lockable(value, ReentrantLock())
328328
getindex(l::Lockable) = (assert_havelock(l.lock); l.value)
329329

330330
"""
331-
lock(f::Function, l::Lockable)
331+
lock(f::Function, l::Lockable)
332332
333333
Acquire the lock associated with `l`, execute `f` with the lock held,
334334
and release the lock when `f` returns. `f` will receive one positional

0 commit comments

Comments
 (0)