Skip to content

Commit

Permalink
pubcrate
Browse files Browse the repository at this point in the history
  • Loading branch information
Manishearth committed Jan 5, 2024
1 parent 81c1e70 commit fb1ce60
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion components/calendar/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ impl MonthCode {
/// Construct a "normal" month code given a number ("Mxx").
///
/// Returns an error for months greater than 99
pub fn new_normal(number: u8) -> Option<Self> {
#[cfg(test)] // Only used in tests for now. Could be made public if people need it.
pub(crate) fn new_normal(number: u8) -> Option<Self> {
let tens = number / 10;
let ones = number % 10;
if tens > 9 {
Expand Down

0 comments on commit fb1ce60

Please sign in to comment.