Permalink
Browse files

Fixed description of example custom filter

Example custom filter reverses the order of characters; doesn't convert a variable to lowercase.
  • Loading branch information...
1 parent 22a7dcf commit 793824554a7b1b18cbbb3ca01df0cca4c88f8a93 @airandfingers airandfingers committed Feb 1, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 docs/docs/index.html
View
2 docs/docs/index.html
@@ -242,7 +242,7 @@ <h1 id="filters-custom">Custom Filters</h1>
<pre><code data-language="javascript">swig.init({ filters: require('myfilters') });</code></pre>
- <p>In your <code>myfilters.js</code> file, each filter method is just a simple javascript method. For example, here's a filter to make a variable all lowercase:</p>
+ <p>In your <code>myfilters.js</code> file, each filter method is just a simple javascript method. For example, here's a filter to reverse the order of characters in a variable:</p>
<pre><code data-language="javascript">exports.myfilter = function (input) {
return input.toString().split('').reverse().join('');

0 comments on commit 7938245

Please sign in to comment.