Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ocaml/en] Correct OCaml record field assignment syntax #5189

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

piyuple
Copy link

@piyuple piyuple commented Nov 23, 2024

Fixed an error in the OCaml article where record field assignments incorrectly used : instead of =.
Updated example:

let cow = { name = "cow"; color = "brown"; legs = 4 };;
  • I solemnly swear that this is all original content of which I am the original author
  • Pull request title is prepended with [language/lang-code] (example [python/fr-fr] or [java/en])
  • Pull request touches only one file (or a set of logically related files with similar changes made)
  • Content changes are aimed at intermediate to experienced programmers (this is a poor format for explaining fundamental programming concepts)
  • If you've changed any part of the YAML Frontmatter, make sure it is formatted according to CONTRIBUTING.md
    • Yes, I have double-checked quotes and field names!

Fixed an error in the OCaml article where record field assignments incorrectly used `:` instead of `=`.
Updated example:
```ocaml
let cow = { name = "cow"; color = "brown"; legs = 4 };;
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.

1 participant