mirror of
https://github.com/martinvonz/jj.git
synced 2025-05-05 23:42:50 +00:00
13 lines
392 B
Markdown
13 lines
392 B
Markdown
# 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.
|