Fixed typos on usage example

This commit is contained in:
Alexander Cerutti
2019-04-08 21:42:28 +02:00
parent d992b392c5
commit 5b5ac01ceb

View File

@@ -135,11 +135,11 @@ let examplePass = new Pass({
}); });
// Adding some settings to be written inside pass.json // Adding some settings to be written inside pass.json
pass.localize("en", { ... }); examplePass.localize("en", { ... });
pass.barcode("36478105430"); // Random value examplePass.barcode("36478105430"); // Random value
// Generate the stream, which gets returned through a Promise // Generate the stream, which gets returned through a Promise
pass.generate() examplePass.generate()
.then(stream => { .then(stream => {
doSomethingWithTheStream(stream); doSomethingWithTheStream(stream);
}) })