mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 12:24:29 +00:00
fix doc tests
This commit is contained in:
parent
bd7375a58f
commit
b19ef6b046
37 changed files with 75 additions and 61 deletions
|
|
@ -36,7 +36,7 @@ impl Input {
|
|||
/// the *previous* token was joint, with mbe, you know whether the *current*
|
||||
/// one is joint. This API allows for styles of usage:
|
||||
///
|
||||
/// ```
|
||||
/// ```ignore
|
||||
/// // In text:
|
||||
/// tokens.was_joint(prev_joint);
|
||||
/// tokens.push(curr);
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ pub use crate::{
|
|||
///
|
||||
/// That is, for something like
|
||||
///
|
||||
/// ```
|
||||
/// ```ignore
|
||||
/// quick_check! {
|
||||
/// fn prop() {}
|
||||
/// }
|
||||
|
|
|
|||
|
|
@ -16,8 +16,9 @@ pub struct Output {
|
|||
/// 32-bit encoding of events. If LSB is zero, then that's an index into the
|
||||
/// error vector. Otherwise, it's one of the thee other variants, with data encoded as
|
||||
///
|
||||
/// |16 bit kind|8 bit n_input_tokens|4 bit tag|4 bit leftover|
|
||||
///
|
||||
/// ```text
|
||||
/// |16 bit kind|8 bit n_input_tokens|4 bit tag|4 bit leftover|
|
||||
/// ``````
|
||||
event: Vec<u32>,
|
||||
error: Vec<String>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue