mirror of
https://codeberg.org/icewind/php-literal-parser.git
synced 2026-06-03 18:44:07 +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`
|
||||
///
|
||||
/// ## Example
|
||||
/// . |
|
||||
/// 2 | [
|
||||
/// 3 | "broken"
|
||||
/// 4 | "array"
|
||||
/// | ^^^^^^^^ Unexpected token, found LiteralString expected one of [SquareClose, Comma, Arrow]
|
||||
/// 5 | ]
|
||||
/// 6 |
|
||||
///
|
||||
/// ```text
|
||||
/// . |
|
||||
/// 2 | [
|
||||
/// 3 | "broken"
|
||||
/// 4 | "array"
|
||||
/// | ^^^^^^^^ Unexpected token, found LiteralString expected one of [SquareClose, Comma, Arrow]
|
||||
/// 5 | ]
|
||||
/// 6 |
|
||||
/// ```
|
||||
///
|
||||
#[derive(Debug)]
|
||||
pub struct SpannedError<'a, T: Error + Debug> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue