Skip to content

The missing third let expression in record.mdx #587

Closed
@include-yy

Description

@include-yy

the rescript and js code start at line 71 of record.mdx, and its content is:

// Example.res
let me: School.person = {age: 20, name: "Big ReScript"}
/* or */
let me2 = {School.age: 20, name: "Big ReScript"}

var me = {
  age: 20,
  name: "Big ReScript"
};
var me2 = {
  age: 20,
  name: "Big ReScript"
};

After these, the document said that "either of the 3 says ....", but there are just two: me and me2.

So I think there might be me3, and it is like:

let me3 = {age: 20, School.name: "Big ReScript"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions