diff --git a/docs/basic-usage.rst b/docs/basic-usage.rst
index 997647cf..ebabe28a 100644
--- a/docs/basic-usage.rst
+++ b/docs/basic-usage.rst
@@ -299,3 +299,15 @@ applications.
:param container: If true, will output a complete
``
`` element, otherwise just the
messages each wrapped in a ``
``.
+
+Note that for this functionality to work properly, flashing messages must be
+categorized with a valid bootstrap alert category (one of ``success``,
+``info``, ``warning``, ``danger``).
+
+.. highlight:: python
+
+Example::
+
+ flash('Operation failed', 'danger')
+
+.. highlight:: jinja