Skip to content

Fix typo in code example#1355

Merged
ferranrecio merged 1 commit intomoodle:mainfrom
davosmith:patch-2
Apr 2, 2026
Merged

Fix typo in code example#1355
ferranrecio merged 1 commit intomoodle:mainfrom
davosmith:patch-2

Conversation

@davosmith
Copy link
Copy Markdown
Contributor

There looks to be a typo in the code sample.

The function param element is overwritten on the first line of the function, but the code then attempts to use the original parameter, on the second line (which won't work, unless this is some subtle bit of Javascript functionality that I'm missing - in which case, maybe it needs a comment in the code to explain it).

@netlify
Copy link
Copy Markdown

netlify bot commented May 16, 2025

Deploy Preview for moodledevdocs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit f8807f8
🔍 Latest deploy log https://app.netlify.com/projects/moodledevdocs/deploys/6827469668b688000810b2d0
😎 Deploy Preview https://deploy-preview-1355--moodledevdocs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Copy link
Copy Markdown
Collaborator

@ferranrecio ferranrecio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting this fix.

@ferranrecio ferranrecio added this pull request to the merge queue Apr 2, 2026
Merged via the queue into moodle:main with commit 794b23a Apr 2, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants