Skip to content

Commit

Permalink
fix: add syntax highlighting in comments and README
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Aug 11, 2024
1 parent b4f0462 commit c21242b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ match cmd.parse_until_sub_cmd() {

This crate supports Rust 1.74.1 or later.

```
```sh
% cargo msrv --no-check-feedback
Fetching index
Determining the Minimum Supported Rust Version (MSRV) for toolchain x86_64-apple-darwin
Expand Down
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
//!
//! In addition,the help printing for an array of [OptCfg] is generated with [Help].
//!
//! ```
//! ```rust
//! use cliargs::{Cmd, OptCfg};
//! use cliargs::OptCfgParam::{names, has_arg, defaults, validator, desc, arg_in_help};
//! use cliargs::validators::validate_number;
Expand Down Expand Up @@ -238,7 +238,7 @@
//! If you want to specify an array which contains only one emtpy string, write nothing after `=` symbol, like
//! `#[opt(cfg="=")]`.
//!
//! ```
//! ```rust
//! use cliargs::Cmd;
//! use cliargs::errors::InvalidOption;
//! use cliargs::Help;
Expand Down Expand Up @@ -289,7 +289,7 @@
//!
//! The folowing is an example code using [Cmd::parse_until_sub_cmd]:
//!
//! ```
//! ```rust
//! use cliargs::Cmd;
//! use cliargs::errors::InvalidOption;
//!
Expand Down

0 comments on commit c21242b

Please sign in to comment.