Browse Source

book/development: Use +nightly for cargo fmt.

parazyd 4 years ago
parent
commit
3d9a8f1c41
1 changed files with 1 additions and 1 deletions
  1. 1 1
      book/src/development.md

+ 1 - 1
book/src/development.md

@@ -9,7 +9,7 @@ this by creating a git `pre-commit` hook like the following:
 
 ```shell
 #!/bin/sh
-if ! cargo fmt -- --check >/dev/null; then
+if ! cargo +nightly fmt -- --check >/dev/null; then
     echo "There are some code style issues. Run 'cargo fmt' to fix it."
     exit 1
 fi