dtolnay / itoa

Fast function for printing integer primitives to a decimal string
Apache License 2.0
306 stars 37 forks source link

Clarify platform sensitivity of MAX_STR_LEN #47

Closed dtolnay closed 3 days ago

dtolnay commented 3 days ago

For example <isize as itoa::Integer>::MAX_STR_LEN has a different value if cfg(target_pointer_width = "32") compared to cfg(target_pointer_width = "64"). The MAX_STR_LEN is not the maximum length of string that formatting an isize can produce in general. It is specific to the current platform.

45