Skip to content

Conversation

@sogaiu
Copy link
Collaborator

@sogaiu sogaiu commented Jan 25, 2025

This PR suggests tweaking some of the examples for slice.

The comment for the first example mentioned "a new array", but the return value is a tuple. Since the input to slice is an array in this case, it seemed reasonable to remove the comment.

A number of the other examples used [:a :b :d :d :e] (note that there are two instances of :d) as an argument to slice, but based on the surrounding information, I suspect the intent was to use [:a :b :c :d :e] so this was altered in some cases.

Finally, I think error messages have changed since the original example was created so an update was made along those lines.

@bakpakin bakpakin merged commit 4636ee7 into janet-lang:master Jan 25, 2025
1 check passed
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.

2 participants