Skip to content

Commit 02de8d0

Browse files
committed
Give direct information in docstring
1 parent a2bc318 commit 02de8d0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

base/nullable.jl

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ getindex(x::Nullable) = isnull(x) ? throw(NullException()) : x.value
7070
"""
7171
get(x::Nullable)
7272
73-
Alias for `getindex(x::Nullable)`.
73+
Attempt to access the value of `x`. Throw a `NullException` if the value is not
74+
present.
7475
"""
7576
get(x::Nullable) = x[]
7677

doc/stdlib/base.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -826,7 +826,7 @@ Nullables
826826

827827
.. Docstring generated from Julia source
828828
829-
Attempt to access the value of ``x``\ . Returns the value if it is present; otherwise, returns ``y`` if provided.
829+
Attempt to access the value of ``x``\ . Returns the value if it is present; otherwise, returns ``y``\ .
830830

831831
.. function:: getindex(x::Nullable)
832832

0 commit comments

Comments
 (0)