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 52a27c71dc758cdf3d82ad4fb0caf858b7219df4
parent 186c9ca9255e9482ff15ae1a1e4416a4a5a47ab3
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