Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
CONTRIBUTING: include `super` in import examples
Fintan Halpenny committed 3 months ago
commit 1d6c1c1430d2d3fd4551b3151b60be2e2719e1c5
parent 94cae4dec2cca4ec3d3b7410256b5428ec676f6a
1 file changed +3 -1
modified CONTRIBUTING.md
@@ -145,10 +145,12 @@ Imports are organized in groups, from least specific to more specific:
    use git_ref_format as format;    // Then, external dependencies.
    use serde_json::Value;

-
    use crate::crypto::PublicKey;    // Finally, local crate imports.
+
    use crate::crypto::PublicKey;    // Then, local crate imports.
    use crate::storage::refs::Refs;
    use crate::storage::RemoteId;

+
    use super::Oid;                  // Finally, super imports.
+

#### Variable naming

Use short 1-letter names when the variable scope is only a few lines, or the context is