diff --git a/salt/modules/logmod.py b/salt/modules/logmod.py
index <HASH>..<HASH> 100644
--- a/salt/modules/logmod.py
+++ b/salt/modules/logmod.py
@@ -10,7 +10,7 @@ It comes very handy when debugging complex Jinja templates, for example:
 .. code-block:: jinja
 
     {%- for var in range(10) %}
-      {%- do salt.log.info(var) -%}
+      {%- do salt["log.info"](var) -%}
     {%- endfor %}
 
 CLI Example:
Update jinja example to recommended syntax