From afdb3bb1b907dc091b5d63598202e5f30be9add8 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Fri, 5 Dec 2014 23:37:53 -0500 Subject: [PATCH] docs: update code block on homepage - fixes #323 --- docs/css/main.css | 7 ------- docs/home.html | 9 +++++---- 2 files changed, 5 insertions(+), 11 deletions(-) diff --git a/docs/css/main.css b/docs/css/main.css index 7698d1f74ba..52daf9562cf 100755 --- a/docs/css/main.css +++ b/docs/css/main.css @@ -334,13 +334,6 @@ h2, h3 { background: #2a74ed; } -/* - What is it? - */ -.about pre { - font-size: 110%; -} - /* Featuring */ diff --git a/docs/home.html b/docs/home.html index 77be6b753c5..c654f88f222 100755 --- a/docs/home.html +++ b/docs/home.html @@ -83,14 +83,15 @@

What is it?

Retrieve Datastore Entities

-var gcloud = require('gcloud'); - -var ds = gcloud.datastore.dataset({ +var gcloud = require('gcloud')({ projectId: 'my-project', keyFilename: '/path/to/keyfile.json' }); -ds.get(ds.key(['Product', 123]), function(err, entity) { +var dataset = gcloud.datastore.dataset(); +var productKey = dataset.key(['Product', 123]); + +dataset.get(productKey, function(err, entity) { console.log(err, entity); });