mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-05 15:32:49 +00:00
392 B
392 B
Style guide
Panics
Panics are not allowed, especially in code that may run on a server. Calling
.unwrap()
is okay if it's guaranteed to be safe by previous checks or
documented invariants. For example, if a function is documented as requiring
a non-empty slice as input, it's fine to call slice[0]
and panic.
Markdown
Try to wrap at 80 columns. We don't have a formatter yet.