Mercurial > hg
diff mercurial/help/templates.txt @ 34658:dbe1f5118864
help: use single quotes in ``template example``
It was hard to read because ``""`` was rendered as """".
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 12 Oct 2017 21:56:13 +0900 |
parents | 4c1cfe54c08d |
children |
line wrap: on
line diff
--- a/mercurial/help/templates.txt Thu Oct 12 21:48:02 2017 +0900 +++ b/mercurial/help/templates.txt Thu Oct 12 21:56:13 2017 +0900 @@ -74,9 +74,9 @@ The dot operator can be used as a shorthand for accessing a sub item: -- ``expr.member`` is roughly equivalent to ``expr % "{member}"`` if ``expr`` +- ``expr.member`` is roughly equivalent to ``expr % '{member}'`` if ``expr`` returns a non-list/dict. The returned value is not stringified. -- ``dict.key`` is identical to ``get(dict, "key")``. +- ``dict.key`` is identical to ``get(dict, 'key')``. Aliases =======