Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrectly displayed documentation for BatRandom #883

Open
co-dan opened this issue Nov 18, 2018 · 3 comments
Open

Incorrectly displayed documentation for BatRandom #883

co-dan opened this issue Nov 18, 2018 · 3 comments

Comments

@co-dan
Copy link

co-dan commented Nov 18, 2018

If you take a look at the documentation for BatRandom.choice: https://ocaml-batteries-team.github.io/batteries-included/hdoc2/BatRandom.html#VALchoice

You can see the comment:

This function only works on finite enumerations with less than 2* elements.

Where * is actually the number 30 in a very very tiny font. It is not really illegible on my screen. At first I thought it was a smudge or something.

The comments in the code make it obvious that the limitation is 2^30

@co-dan
Copy link
Author

co-dan commented Nov 18, 2018

The problem is in the style sheet:

.superscript { font-size : 4 }
.subscript { font-size : 4 }

Firefox complains that 4 is not a valid argument, and defaults it to 4px, which is very small.

@gasche
Copy link
Member

gasche commented Nov 18, 2018

Thanks for the report and analysis!

@UnixJunkie
Copy link
Member

Anyone has a fix for this?

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

No branches or pull requests

3 participants