summary refs log tree commit diff stats
path: root/doc/intern.rst
diff options
context:
space:
mode:
authorquantimnot <54247259+quantimnot@users.noreply.github.com>2022-05-30 05:07:47 -0400
committerGitHub <noreply@github.com>2022-05-30 11:07:47 +0200
commit497af2c0d9f311e050ba57842a6326ca70489d55 (patch)
treef9f2b62022c9ae30e990adfe4cd627c8cae620f1 /doc/intern.rst
parent004fc23a3fa79fc32e0fb5d4f438ddc22964b0da (diff)
downloadNim-497af2c0d9f311e050ba57842a6326ca70489d55.tar.gz
Doc preferred import style in compiler (#19832)
Doc prefered import style in compiler

Co-authored-by: quantimnot <quantimnot@users.noreply.github.com>
Diffstat (limited to 'doc/intern.rst')
-rw-r--r--doc/intern.rst1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/intern.rst b/doc/intern.rst
index a8846ae02..4ca7eff20 100644
--- a/doc/intern.rst
+++ b/doc/intern.rst
@@ -186,6 +186,7 @@ Coding Guidelines
 * Use a space after a colon, but not before it.
 * [deprecated] Start types with a capital `T`, unless they are
   pointers/references which start with `P`.
+* Prefer `import package`:nim: over `from package import symbol`:nim:.
 
 See also the `API naming design <apis.html>`_ document.