From 22b16ed32122c19957d2c640156730141d7abf99 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Sun, 2 Feb 2014 14:04:34 -0800 Subject: [PATCH] Minor textual fixes --- Style-Guide.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Style-Guide.md b/Style-Guide.md index 45b349c..7574165 100644 --- a/Style-Guide.md +++ b/Style-Guide.md @@ -5,12 +5,12 @@ * [Required License in File Header](https://github.com/mozilla/pdf.js/wiki/License-Headers) ## Naming -* variables and functions - lowerCamelCase -* constructor like functions - UpperCamelCase -* constants - ALL_UPPER_CASE_WITH_UNDERSCORES +* Variables and functions - lowerCamelCase +* Constructor-like functions - UpperCamelCase +* Constants - ALL_UPPER_CASE_WITH_UNDERSCORES ## Braces -* Always use braces and put them on same line even for single line control statements +* Always use braces and put them on same line, even for single line control statements. ```javascript if (someVar) { @@ -42,7 +42,7 @@ if (someVar === conditionA) { _Note: This wasn't always followed, but any new code should do this._ ## Classes -The standard way of creating classes in pdf.js is the following. Please note that by class we mean an object that is class-like. Also, note the naming of all anonymous functions. +The standard way of creating classes in PDF.js is the following. Please note that by class we mean an object that is class-like. Also, note the naming of all anonymous functions. ```javascript var ClassName = (function ClassNameClosure() {