Skip to content

Incorrect Route Matching Comment in chi.go #879

@hrtsegv

Description

@hrtsegv

The comment on line 54 of the chi.go file contains inaccurate information regarding route matching. It states:

// "/page/{other}/index" also matches "/page/intro/latest"

However, this is not accurate. The route /page/{other}/index expects a path component after /page/ followed by /index. It does not match paths like /page/intro/latest.

Proposed Correction:

Update the comment on line 54 to accurately reflect the behavior of the /page/{other}/index route. For example:

// "/page/{other}/index" matches "/page/some_value/index" but not "/page/intro/latest"

This correction will provide users with accurate information about the route's matching behavior.

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