mirror of
https://codeberg.org/icewind/php-literal-parser.git
synced 2026-06-03 10:34:08 +02:00
fix doc
This commit is contained in:
parent
45051f042e
commit
6975a89b63
1 changed files with 10 additions and 7 deletions
17
src/error.rs
17
src/error.rs
|
|
@ -15,13 +15,16 @@ use thiserror::Error;
|
||||||
/// An error and related source span, will print out the problematic code fragment and error on `Display`
|
/// An error and related source span, will print out the problematic code fragment and error on `Display`
|
||||||
///
|
///
|
||||||
/// ## Example
|
/// ## Example
|
||||||
/// . |
|
///
|
||||||
/// 2 | [
|
/// ```text
|
||||||
/// 3 | "broken"
|
/// . |
|
||||||
/// 4 | "array"
|
/// 2 | [
|
||||||
/// | ^^^^^^^^ Unexpected token, found LiteralString expected one of [SquareClose, Comma, Arrow]
|
/// 3 | "broken"
|
||||||
/// 5 | ]
|
/// 4 | "array"
|
||||||
/// 6 |
|
/// | ^^^^^^^^ Unexpected token, found LiteralString expected one of [SquareClose, Comma, Arrow]
|
||||||
|
/// 5 | ]
|
||||||
|
/// 6 |
|
||||||
|
/// ```
|
||||||
///
|
///
|
||||||
#[derive(Debug)]
|
#[derive(Debug)]
|
||||||
pub struct SpannedError<'a, T: Error + Debug> {
|
pub struct SpannedError<'a, T: Error + Debug> {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue