Mention Display trait in docs
This commit is contained in:
parent
9b1402101d
commit
17a447d898
1 changed files with 3 additions and 0 deletions
|
@ -145,6 +145,9 @@
|
|||
//! ```
|
||||
//!
|
||||
//! Use `$(expr)` syntax to splice a Rust expression into the output.
|
||||
//! The expression may evaluate to anything that implements
|
||||
//! `std::fmt::Display`.
|
||||
//!
|
||||
//! You can omit the brackets if it's just a variable (`$var`), indexing
|
||||
//! operation (`$var[0]`), method call (`$var.method()`), or property
|
||||
//! lookup (`$var.property`).
|
||||
|
|
Loading…
Add table
Reference in a new issue