Ver código fonte

Fix a missing part of the style guidelines.

Tony Allevato 9 anos atrás
pai
commit
5c456dc6e5
1 arquivos alterados com 3 adições e 1 exclusões
  1. 3 1
      Documentation/STYLE_GUIDELINES.md

+ 3 - 1
Documentation/STYLE_GUIDELINES.md

@@ -37,7 +37,9 @@ two pieces of advice:
   conformance to a type should be named `Type+Protocol.swift` so the content
   and purpose of the file is easily glanceable based on the name and so that it
   is easy to find the source file where a particular concept is implemented.
-  * Mirroring 
+  * Mirroring the multiple-types-in-one-file discussed above, a file that adds
+    protocol conformance to several related types could be named based on the
+    plural name of that file, plus the protocol name: `Types+Protocol.swift`.
 
 ## Documentation