Skip to content

Commit 80b543a

Browse files
committed
fix case in comments
1 parent f8dfc92 commit 80b543a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymatgen/core/units.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def from_str(cls, string: str) -> Self:
442442
"""Convert string to FloatWithUnit.
443443
444444
Example usage:
445-
Memory.from_str("1. Mb").
445+
Memory.from_str("1. MB").
446446
"""
447447
# Extract num and unit string.
448448
string = string.strip()
@@ -765,7 +765,7 @@ def _my_partial(func, *args, **kwargs):
765765
766766
Args:
767767
val (float): Value
768-
unit (Unit): e.g. Kb, Mb, Gb, Tb. Must be valid unit or UnitError
768+
unit (Unit): e.g. KB, MB, GB, TB. Must be valid unit or UnitError
769769
is raised.
770770
"""
771771

0 commit comments

Comments
 (0)