Skip to content

Commit dbd7d63

Browse files
committed
Use markdown table in docs
1 parent 50e327d commit dbd7d63

File tree

1 file changed

+8
-34
lines changed
  • src/doc/rustdoc/src/read-documentation

1 file changed

+8
-34
lines changed

src/doc/rustdoc/src/read-documentation/search.md

+8-34
Original file line numberDiff line numberDiff line change
@@ -153,40 +153,14 @@ But it *does not* match `Result<Vec, u8>` or `Result<u8<Vec>>`.
153153

154154
### Primitives with Special Syntax
155155

156-
<table>
157-
<thead>
158-
<tr>
159-
<th>Shorthand</th>
160-
<th>Explicit names</th>
161-
</tr>
162-
</thead>
163-
<tbody>
164-
<tr>
165-
<td><code>[]</code></td>
166-
<td><code>primitive:slice</code> and/or <code>primitive:array</code></td>
167-
</tr>
168-
<tr>
169-
<td><code>[T]</code></td>
170-
<td><code>primitive:slice&lt;T&gt;</code> and/or <code>primitive:array&lt;T&gt;</code></td>
171-
</tr>
172-
<tr>
173-
<td><code>()</code></td>
174-
<td><code>primitive:unit</code> and/or <code>primitive:tuple</code></td>
175-
</tr>
176-
<tr>
177-
<td><code>(T)</code></td>
178-
<td><code>T</code></td>
179-
</tr>
180-
<tr>
181-
<td><code>(T,)</code></td>
182-
<td><code>primitive:tuple&lt;T&gt;</code></td>
183-
</tr>
184-
<tr>
185-
<td><code>!</code></td>
186-
<td><code>primitive:never</code></td>
187-
</tr>
188-
</tbody>
189-
</table>
156+
| Shorthand | Explicit names |
157+
| --------- | ------------------------------------------------ |
158+
| `[]` | `primitive:slice` and/or `primitive:array` |
159+
| `[T]` | `primitive:slice<T>` and/or `primitive:array<T>` |
160+
| `()` | `primitive:unit` and/or `primitive:tuple` |
161+
| `(T)` | `T` |
162+
| `(T,)` | `primitive:tuple<T>` |
163+
| `!` | `primitive:never` |
190164

191165
When searching for `[]`, Rustdoc will return search results with either slices
192166
or arrays. If you know which one you want, you can force it to return results

0 commit comments

Comments
 (0)