From 17a447d8989ed150f89136cc400cc52418eaaf19 Mon Sep 17 00:00:00 2001 From: Chris Wong <lambda.fairy@gmail.com> Date: Sun, 25 Jan 2015 15:12:00 +1300 Subject: [PATCH] Mention Display trait in docs --- maud/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/maud/src/lib.rs b/maud/src/lib.rs index f257396..01e868c 100644 --- a/maud/src/lib.rs +++ b/maud/src/lib.rs @@ -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`).