Skip to content

Commit 08e0c59

Browse files
Typos fixed in javascript-sdk.md
The 1st change is less significant. The placeholder value of the key variable seemed wrong. The comment right above that line indicates that too. The 2nd change is a straight up JavaScript grammar error. I'm pretty confident that's the right fix.
1 parent d112830 commit 08e0c59

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-services/document-intelligence/quickstarts/includes/javascript-sdk.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,14 +151,14 @@ Extract text, selection marks, text styles, table structures, and bounding regio
151151
const { AzureKeyCredential } = require("@azure/core-auth");
152152

153153
// set `<your-key>` and `<your-endpoint>` variables with the values from the Azure portal.
154-
const key = "<your-key";
154+
const key = "<your-key>";
155155
const endpoint = "<your-endpoint>";
156156

157157
// sample document
158158
const formUrl = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-REST-api-samples/master/curl/form-recognizer/sample-layout.pdf"
159159

160160
async function main() {
161-
const client = DocumentIntelligence(endpoint, new AzureKeyCredential(key:key));
161+
const client = DocumentIntelligence(endpoint, new AzureKeyCredential(key));
162162

163163

164164
const initialResponse = await client

0 commit comments

Comments
 (0)