From d7cc70cae76cf71438ada669ecfcd7abdd1ebea9 Mon Sep 17 00:00:00 2001 From: Yu Nejigane Date: Mon, 14 Mar 2016 18:05:13 +0900 Subject: [PATCH] Update syntax.rst I fixed returned value of `dists[-2].other`. --- source/bql/syntax.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/bql/syntax.rst b/source/bql/syntax.rst index 531eba6..e981661 100644 --- a/source/bql/syntax.rst +++ b/source/bql/syntax.rst @@ -251,7 +251,7 @@ The basic rules are: The first element of a JSON Path must always be a "map access" component (since the document is always a map) and the leading dot must be omitted. -For example, ``ids[1]`` in the document given above would return ``17``, ``dists[-2].other`` would return ``7`` and just ``dists`` would return the array ``[{"other": "foo", "value": 7}, {"other": "bar", "value": 3.5}]``. +For example, ``ids[1]`` in the document given above would return ``17``, ``dists[-2].other`` would return ``foo`` and just ``dists`` would return the array ``[{"other": "foo", "value": 7}, {"other": "bar", "value": 3.5}]``. Extended Descend Operators ^^^^^^^^^^^^^^^^^^^^^^^^^^