Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Change code sample for Array.sortWith #337

Open
codec-abc opened this issue Aug 2, 2019 · 0 comments
Open

Change code sample for Array.sortWith #337

codec-abc opened this issue Aug 2, 2019 · 0 comments

Comments

@codec-abc
Copy link

codec-abc commented Aug 2, 2019

Hi,

If you look at the documentation for Array.SortWith - whose matching page is here - you will find the example pretty confusing because the example sort string based on length on character order but they are badly displayed. For example, the character > is displayed as >. So, at first glance it seems that string are not sorted by length contrary to what the code sample does.

I see 2 solutions here:

  • Change the characters to use some that are displayed properly
  • Fix the output. It seems that there is some kind of magic attribute [!code-fsharpMain] in this page to probably generate the output from the code. Since I don't how this work and how HTML is escaped I can't tell much about this.

Regards,

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant