Skip to content

Incorrect code on capy-ui.org #4

@Ace-h121

Description

@Ace-h121

Where was it found

I found this issue in the hello world section of the documentation

What is the bug

for some reason, on the webpage the documentation reads like this

pub usingnamespace capy.cross_platform;

pub fn main() !void {
    window.resize(800, 600);
    try window.set(
        capy.Button(.{ .label = "A Button" })
    );
    window.show();
}

the problem here is the capital B on Button, it causes the program not to compile as its referring to the struct instead of the function. In the .md file for this page it is correct, however on the webpage it is wrong.

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