Skip to content

Commit

Permalink
rust: Add macro token style
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 23, 2023
1 parent fee6ea6 commit 307aa33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions docs/rust/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ Code style

- `Avoid matching an Option or Result <https://www.lurklurk.org/effective-rust/transform.html>`__. Instead, use `Option <https://doc.rust-lang.org/std/option/enum.Option.html>`__ and `Result <https://doc.rust-lang.org/std/result/enum.Result.html>`__ methods.
- `Don't panic <https://www.lurklurk.org/effective-rust/panic.html>`__. This includes ``panic!``, ``unreachable!``, ``unwrap()`` and ``expect()``.
- Use the same word for macro tokens as for local variables, if appropriate.

.. seealso::

Expand Down

0 comments on commit 307aa33

Please sign in to comment.