Skip to content

Commit dc49077

Browse files
committed
Add backticks to Rust types in macro docs
1 parent b8aef83 commit dc49077

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/host/data/macros.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
macro_rules! want_macro {
1010
($t:expr, $n:ident, $isf:ident, $asf:ident) => {
11-
/// Helper that returns an Option<Value::$t>.
11+
/// Helper that returns an `Option<Value>`.
1212
/// You can optionally pass a JSON pointer to retrieve a
1313
/// nested key.
1414
#[macro_export]
@@ -72,7 +72,7 @@ want_macro!("Object", wantobj, is_object, as_object);
7272
// need_macro!("Array", needarray, is_array, as_array);
7373
// need_macro!("Object", needobj, is_object, as_object);
7474

75-
/// Helper that returns a Result<Value::Null>.
75+
/// Helper that returns a `Result<Value::Null>`.
7676
/// You can optionally pass a JSON pointer to retrieve a nested key.
7777
#[macro_export]
7878
macro_rules! neednull {
@@ -89,7 +89,7 @@ macro_rules! neednull {
8989
});
9090
}
9191

92-
/// Helper that returns a Result<Value::Bool>.
92+
/// Helper that returns a `Result<Value::Bool>`.
9393
/// You can optionally pass a JSON pointer to retrieve a nested key.
9494
#[macro_export]
9595
macro_rules! needbool {
@@ -106,7 +106,7 @@ macro_rules! needbool {
106106
});
107107
}
108108

109-
/// Helper that returns a Result<Value::I64>.
109+
/// Helper that returns a `Result<Value::I64>`.
110110
/// You can optionally pass a JSON pointer to retrieve a nested key.
111111
#[macro_export]
112112
macro_rules! needi64 {
@@ -123,7 +123,7 @@ macro_rules! needi64 {
123123
});
124124
}
125125

126-
/// Helper that returns a Result<Value::U64>.
126+
/// Helper that returns a `Result<Value::U64>`.
127127
/// You can optionally pass a JSON pointer to retrieve a nested key.
128128
#[macro_export]
129129
macro_rules! needu64 {
@@ -140,7 +140,7 @@ macro_rules! needu64 {
140140
});
141141
}
142142

143-
/// Helper that returns a Result<Value::F64>.
143+
/// Helper that returns a `Result<Value::F64>`.
144144
/// You can optionally pass a JSON pointer to retrieve a nested key.
145145
#[macro_export]
146146
macro_rules! needf64 {
@@ -157,7 +157,7 @@ macro_rules! needf64 {
157157
});
158158
}
159159

160-
/// Helper that returns a Result<Value::String>.
160+
/// Helper that returns a `Result<Value::String>`.
161161
/// You can optionally pass a JSON pointer to retrieve a nested key.
162162
#[macro_export]
163163
macro_rules! needstr {
@@ -174,7 +174,7 @@ macro_rules! needstr {
174174
});
175175
}
176176

177-
/// Helper that returns a Result<Value::Array>.
177+
/// Helper that returns a `Result<Value::Array>`.
178178
/// You can optionally pass a JSON pointer to retrieve a nested key.
179179
#[macro_export]
180180
macro_rules! needarray {
@@ -191,7 +191,7 @@ macro_rules! needarray {
191191
});
192192
}
193193

194-
/// Helper that returns a Result<Value::Object>.
194+
/// Helper that returns a `Result<Value::Object>`.
195195
/// You can optionally pass a JSON pointer to retrieve a nested key.
196196
#[macro_export]
197197
macro_rules! needobj {

0 commit comments

Comments
 (0)