You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/10/03 12:56:33 UTC

[GitHub] garrensmith closed pull request #125: Fix typo in README code samples

garrensmith closed pull request #125: Fix typo in README code samples
URL: https://github.com/apache/couchdb-nano/pull/125
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/README.md b/README.md
index aed8859..564897b 100644
--- a/README.md
+++ b/README.md
@@ -148,7 +148,7 @@ A simple but complete example in the [async/await](https://developer.mozilla.org
 
 ```js
 async function asyncCall() {
-  await nano.db.destory('alice')
+  await nano.db.destroy('alice')
   await nano.db.create('alice')
   const alice = nano.use('alice')
   const response = await alice.insert({ happy: true }, 'rabbit')
@@ -163,7 +163,7 @@ or in the raw Promises-style
 const nano = require('nano')('http://localhost:5984');
 let alice;
 
-nano.db.destory('alice').then((response) => {
+nano.db.destroy('alice').then((response) => {
   return nano.db.create('alice')
 }).then((response) =>  {
   alice = nano.use('alice')


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services