mirror of
https://github.com/tiennm99/styleguide.git
synced 2026-10-12 14:15:15 +00:00
jsguide: Replaced unfamiliar words with simpler alternatives. (#849)
Fixes #596.
This commit is contained in:
1 parent
7802b6521b
commit
f58fbeff23
1 file changed
+8
-9
+8
-9
@@ -2827,20 +2827,19 @@ comment on the preceding line.</p>
|
||||
|
||||
<pre><code class="language-js prettyprint good">/**
|
||||
* A useful type union, which is reused often.
|
||||
* @typedef {!Bandersnatch|!BandersnatchType}
|
||||
* @typedef {!FruitType|!FruitTypeEnum}
|
||||
*/
|
||||
let CoolUnionType;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Types of bandersnatches.
|
||||
* Types of fruits.
|
||||
* @enum {string}
|
||||
*/
|
||||
const BandersnatchType = {
|
||||
/** This kind is really frumious. */
|
||||
FRUMIOUS: 'frumious',
|
||||
/** The less-frumious kind. */
|
||||
MANXOME: 'manxome',
|
||||
const FruitTypeEnum = {
|
||||
/** This kind is very sour. */
|
||||
SOUR: 'sour',
|
||||
/** The less-sour kind. */
|
||||
SWEET: 'sweet',
|
||||
};
|
||||
</code></pre>
|
||||
|
||||
|
||||
Reference in new issue
Block a user