Skip to content

Conversation

lareii
Copy link
Member

@lareii lareii commented Dec 15, 2024

Description

Fixed incorrect behavior of the help function for julec.

Checklist

  • A description of the changes in this PR is mentioned above.
  • All the new and existing tests pass.
  • The code follows the code style and conventions of the project.
  • No plagiarized, duplicated, or repetitive code that has been directly copied from another source.
  • I have read the whole Contributing Guidelines of the project and its resources/related pages.

Screenshots (if any)

Original Updated
image image

Note to reviewers

@adamperkowski
Copy link
Member

You, as a member, don't have to fork the repo. You should be able to create a branch.

@mertcandav mertcandav self-assigned this Dec 16, 2024
@mertcandav mertcandav added bug Something isn't working runtime Related with std/runtime or compiled behavior compiler Related with comptime or compilation problems labels Dec 16, 2024
Copy link
Member

@mertcandav mertcandav left a comment

Choose a reason for hiding this comment

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

In the earlier versions of the strings::Builder it supports Str function, which is called automatically by the print and println functions if defined like fn Str(self): str.

But it defined as fn Str(mut self): str currently and I don't think we should make it compatible for auto-call variant. It should be mutable due to behavior. This is not a typical Str conversion method.

So we have to call the Str method. Your fix is works as expected.
Thanks for your contribution.

@mertcandav mertcandav merged commit e84677f into julelang:master Dec 16, 2024
21 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working compiler Related with comptime or compilation problems runtime Related with std/runtime or compiled behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants