Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation issue #4

Open
netbrackets opened this issue Sep 17, 2018 · 0 comments
Open

Documentation issue #4

netbrackets opened this issue Sep 17, 2018 · 0 comments

Comments

@netbrackets
Copy link

I think the Query Chaining doc page has an error in the example. Specifically:

scala> val ref1 = data get "item" get "refs" get "ref" get 1
ref1: Option[morph.ast.ValueNode] =
Some({
"@source": "CERT",
"#text": "CA-98.12.mountd"
})

The returned element shown is the first element in the ref array, but since it states that the "get" function is zero based, I would think the second element in the array would be returned:

{
"@source": "CIAC",
"@url": "www.ciac.org/...",
"#text": "J-006"
},

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant