Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add errors example demo file #151

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Oct 30, 2023

  1. examples: Add error output demonstration

    Add an `errors` example that creates and prints various error types from
    the crate. This is useful for two main purposes:
    
    - Helps us catch mistakes by exercising error paths.
    - Helps us check that error output is useful for debugging.
    - Helps us check that output for "alloc" builds is good/useful (no-std)
    
    Run with appropriate features to verify the output, e.g.,
    
      `cargo run --example errors --no-default-features --features=alloc`
    tcharding committed Oct 30, 2023
    Configuration menu
    Copy the full SHA
    61b6300 View commit details
    Browse the repository at this point in the history

Commits on Nov 2, 2023

  1. Improve InvalidChar Display impl

    Remove the 'code=' and just write the character in single quotes.
    tcharding committed Nov 2, 2023
    Configuration menu
    Copy the full SHA
    a321ee5 View commit details
    Browse the repository at this point in the history