Skip to content

Fix min as short for minim not minute in documentation#2773

Merged
josdejong merged 1 commit into
josdejong:developfrom
jasonhornsby:fix-min-minute-documentation
Sep 12, 2022
Merged

Fix min as short for minim not minute in documentation#2773
josdejong merged 1 commit into
josdejong:developfrom
jasonhornsby:fix-min-minute-documentation

Conversation

@jasonhornsby
Copy link
Copy Markdown
Contributor

I noticed that in the documentation min is marked as short for the volume unit minim. This is not the case since it is used as the short form of minute. See:

Commented out minim definition:

// {name: 'min', base: BASE_UNITS.VOLUME, prefixes: PREFIXES.NONE, value: 0.00000006161152, offset: 0}, // 0.06161152 mL // min is already in use as minute

and the actual minute definition:

mathjs/src/type/unit/Unit.js

Lines 2094 to 2100 in 1947257

min: {
name: 'min',
base: BASE_UNITS.TIME,
prefixes: PREFIXES.NONE,
value: 60,
offset: 0
},

This MR simply moves min to the correct row in the table.

@jasonhornsby
Copy link
Copy Markdown
Contributor Author

jasonhornsby commented Sep 9, 2022

I know this is a tiny change but it caused me to recheck if all our tests are working properly (with a little panic if we have been converting time to some volume unit) 😄

@josdejong
Copy link
Copy Markdown
Owner

with a little panic if we have been converting time to some volume unit

😂 you where probably just in time, thanks!

@josdejong josdejong merged commit 3429228 into josdejong:develop Sep 12, 2022
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