Skip to content

Commit d0710c7

Browse files
kshyattKristofferC
authored andcommitted
Backticks and xrefs (#29349)
(cherry picked from commit c37f4aa)
1 parent 639032c commit d0710c7

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

doc/src/manual/metaprogramming.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ julia> ex3 = Meta.parse("(4 + 4) / 2")
8989
:((4 + 4) / 2)
9090
```
9191

92-
Another way to view expressions is with Meta.show_sexpr, which displays the [S-expression](https://en.wikipedia.org/wiki/S-expression)
92+
Another way to view expressions is with `Meta.show_sexpr`, which displays the [S-expression](https://en.wikipedia.org/wiki/S-expression)
9393
form of a given `Expr`, which may look very familiar to users of Lisp. Here's an example illustrating
9494
the display on a nested `Expr`:
9595

@@ -1070,7 +1070,7 @@ syntax tree.
10701070

10711071
## Generated functions
10721072

1073-
A very special macro is `@generated`, which allows you to define so-called *generated functions*.
1073+
A very special macro is [`@generated`](@ref), which allows you to define so-called *generated functions*.
10741074
These have the capability to generate specialized code depending on the types of their arguments
10751075
with more flexibility and/or less code than what can be achieved with multiple dispatch. While
10761076
macros work with expressions at parse time and cannot access the types of their inputs, a generated
@@ -1269,7 +1269,7 @@ run during inference, it must respect all of the limitations of that code.
12691269
Some operations that should not be attempted include:
12701270

12711271
1. Caching of native pointers.
1272-
2. Interacting with the contents or methods of Core.Compiler in any way.
1272+
2. Interacting with the contents or methods of `Core.Compiler` in any way.
12731273
3. Observing any mutable state.
12741274

12751275
* Inference on the generated function may be run at *any* time, including while your code is attempting

doc/src/manual/missing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ which propagate them (like standard operators). Packages should consider
3535
whether it makes sense to propagate missing values when defining new functions,
3636
and define methods appropriately if that is the case. Passing a `missing` value
3737
to a function for which no method accepting arguments of type `Missing` is defined
38-
throws a `MethodError`, just like for any other type.
38+
throws a [`MethodError`](@ref), just like for any other type.
3939

4040
## Equality and Comparison Operators
4141

@@ -191,7 +191,7 @@ Control flow operators including [`if`](@ref), [`while`](@ref) and the
191191
[ternary operator](@ref man-conditional-evaluation) `x ? y : z`
192192
do not allow for missing values. This is because of the uncertainty about whether
193193
the actual value would be `true` or `false` if we could observe it,
194-
which implies that we do not know how the program should behave. A `TypeError`
194+
which implies that we do not know how the program should behave. A [`TypeError`](@ref)
195195
is thrown as soon as a `missing` value is encountered in this context
196196
```jldoctest
197197
julia> if missing

0 commit comments

Comments
 (0)