Skip to content

Commit 0649d0e

Browse files
authored
Merge pull request #25071 from JuliaLang/ksh/iodo
A link in dump and formatting fixes
2 parents 2f64a3b + 210a6fc commit 0649d0e

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

base/io.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ The text is assumed to be encoded in UTF-8.
292292
# Examples
293293
```jldoctest
294294
julia> open("my_file.txt", "w") do io
295-
write(io, "JuliaLang is a GitHub organization.\nIt has many members.\n");
295+
write(io, "JuliaLang is a GitHub organization.\\nIt has many members.\\n");
296296
end
297297
57
298298
@@ -321,15 +321,15 @@ line.
321321
# Examples
322322
```jldoctest
323323
julia> open("my_file.txt", "w") do io
324-
write(io, "JuliaLang is a GitHub organization.\nIt has many members.\n");
324+
write(io, "JuliaLang is a GitHub organization.\\nIt has many members.\\n");
325325
end
326326
57
327327
328328
julia> readline("my_file.txt")
329329
"JuliaLang is a GitHub organization."
330330
331331
julia> readline("my_file.txt", chomp=false)
332-
"JuliaLang is a GitHub organization.\n"
332+
"JuliaLang is a GitHub organization.\\n"
333333
334334
julia> rm("my_file.txt")
335335
```
@@ -363,7 +363,7 @@ arguments and saving the resulting lines as a vector of strings.
363363
# Examples
364364
```jldoctest
365365
julia> open("my_file.txt", "w") do io
366-
write(io, "JuliaLang is a GitHub organization.\nIt has many members.\n");
366+
write(io, "JuliaLang is a GitHub organization.\\nIt has many members.\\n");
367367
end
368368
57
369369
@@ -374,8 +374,8 @@ julia> readlines("my_file.txt")
374374
375375
julia> readlines("my_file.txt", chomp=false)
376376
2-element Array{String,1}:
377-
"JuliaLang is a GitHub organization.\n"
378-
"It has many members.\n"
377+
"JuliaLang is a GitHub organization.\\n"
378+
"It has many members.\\n"
379379
380380
julia> rm("my_file.txt")
381381
```

base/meta.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ end
5050
@dump expr
5151
5252
Show every part of the representation of the given expression. Equivalent to
53-
`dump(:(expr))`.
53+
[`dump(:(expr))`](@ref dump).
5454
"""
5555
macro dump(expr)
5656
dump(expr)
@@ -85,7 +85,7 @@ end
8585
"""
8686
ParseError(msg)
8787
88-
The expression passed to the `parse` function could not be interpreted as a valid Julia
88+
The expression passed to the [`parse`](@ref) function could not be interpreted as a valid Julia
8989
expression.
9090
"""
9191
struct ParseError <: Exception

0 commit comments

Comments
 (0)