Skip to content

Commit f79fdf9

Browse files
authored
fix several invalid code blocks in docstrings (JuliaLang#49174)
1 parent 58b7e0a commit f79fdf9

File tree

5 files changed

+12
-11
lines changed

5 files changed

+12
-11
lines changed

base/file.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -844,7 +844,7 @@ julia> readdir("base", join=true)
844844
845845
"base/version_git.sh"
846846
"base/views.jl"
847-
"base/weakkeydict.jl"```
847+
"base/weakkeydict.jl"
848848
849849
julia> readdir(abspath("base"), join=true)
850850
145-element Array{String,1}:

base/namedtuple.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ The name-value pairs can also be provided by splatting a named tuple or any
6969
iterator that yields two-value collections holding each a symbol as first
7070
value:
7171
72+
```jldoctest
7273
julia> keys = (:a, :b, :c); values = (1, 2, 3);
7374
7475
julia> NamedTuple{keys}(values)

base/shell.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -361,12 +361,12 @@ cmdargs = Base.shell_escape_wincmd("Passing args with %cmdargs% works 100%!")
361361
run(setenv(`cmd /C echo %cmdargs%`, "cmdargs" => cmdargs))
362362
```
363363
364-
!warning
364+
!!! warning
365365
The argument parsing done by CMD when calling batch files (either inside
366366
`.bat` files or as arguments to them) is not fully compatible with the
367367
output of this function. In particular, the processing of `%` is different.
368368
369-
!important
369+
!!! important
370370
Due to a peculiar behavior of the CMD parser/interpreter, each command
371371
after a literal `|` character (indicating a command pipeline) must have
372372
`shell_escape_wincmd` applied twice since it will be parsed twice by CMD.

stdlib/LinearAlgebra/src/svd.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,6 @@ Base.propertynames(F::SVD, private::Bool=false) =
213213
214214
Return the singular values of `A`, saving space by overwriting the input.
215215
See also [`svdvals`](@ref) and [`svd`](@ref).
216-
```
217216
"""
218217
svdvals!(A::StridedMatrix{T}) where {T<:BlasFloat} = isempty(A) ? zeros(real(T), 0) : LAPACK.gesdd!('N', A)[2]
219218
svdvals!(A::StridedVector{T}) where {T<:BlasFloat} = svdvals!(reshape(A, (length(A), 1)))

stdlib/REPL/src/REPL.jl

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
"""
44
Run Evaluate Print Loop (REPL)
55
6-
Example minimal code
7-
```
8-
import REPL
9-
term = REPL.Terminals.TTYTerminal("dumb", stdin, stdout, stderr)
10-
repl = REPL.LineEditREPL(term, true)
11-
REPL.run_repl(repl)
12-
```
6+
Example minimal code
7+
8+
```julia
9+
import REPL
10+
term = REPL.Terminals.TTYTerminal("dumb", stdin, stdout, stderr)
11+
repl = REPL.LineEditREPL(term, true)
12+
REPL.run_repl(repl)
13+
```
1314
"""
1415
module REPL
1516

0 commit comments

Comments
 (0)