Doc: Fix code example in JS API

open is an array.

Change-Id: Id942f522d5a671248d65aeb3617aa23dfd9795fe
This commit is contained in:
Orgad Shaneh 2018-05-23 09:48:12 +03:00
parent 7cda6c935a
commit 1d56cd75d1
1 changed files with 1 additions and 1 deletions

View File

@ -769,7 +769,7 @@ Gerrit.get(url, callback)
----
Gerrit.get('/changes/?q=status:open', function (open) {
for (var i = 0; i < open.length; i++) {
console.log(open.get(i).change_id);
console.log(open[i].change_id);
}
});
----