[DOCS-12707] stitch function definition code example seems to miss semicolons Created: 16/May/19  Updated: 29/Oct/23  Resolved: 23/Jul/19

Status: Closed
Project: Documentation
Component/s: Stitch
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Roswitha Remling (Inactive) Assignee: Julia Oppenheim
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File image-2019-05-16-13-31-02-851.png    
Participants:
Days since reply: 4 years, 38 weeks, 6 days ago
Story Points: 1

 Description   

Description

https://docs.mongodb.com/stitch/functions/define-a-function/

Stitch Function Editor did not accept the example listed in

Seems line 2 and 3 each need a semicolon ( at the end
```
exports = function()

{ return "Hello, world!"; }

;
```

Acceptance Criteria

 We have updated the code examples on the Define a Function page to properly use semicolons


Generated at Thu Feb 08 08:05:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.