Browse Source

fix typos

Hakim El Hattab 5 years ago
parent
commit
eb5d79370b
2 changed files with 5 additions and 4 deletions
  1. 2 2
      js/reveal.js
  2. 3 2
      plugin/highlight/highlight.js

+ 2 - 2
js/reveal.js

@@ -6003,7 +6003,7 @@
 			}
 			}
 		},
 		},
 
 
-		// Adds/remvoes a custom key binding
+		// Adds/removes a custom key binding
 		addKeyBinding: addKeyBinding,
 		addKeyBinding: addKeyBinding,
 		removeKeyBinding: removeKeyBinding,
 		removeKeyBinding: removeKeyBinding,
 
 
@@ -6012,7 +6012,7 @@
 		hasPlugin: hasPlugin,
 		hasPlugin: hasPlugin,
 		getPlugin: getPlugin,
 		getPlugin: getPlugin,
 
 
-		// Programatically triggers a keyboard event
+		// Programmatically triggers a keyboard event
 		triggerKey: function( keyCode ) {
 		triggerKey: function( keyCode ) {
 			onDocumentKeyDown( { keyCode: keyCode } );
 			onDocumentKeyDown( { keyCode: keyCode } );
 		},
 		},

+ 3 - 2
plugin/highlight/highlight.js

@@ -101,7 +101,8 @@ c:[{cN:"comment",b:/\(\*/,e:/\*\)/},e.ASM,e.QSM,e.CNM,{b:/\{/,e:/\}/,i:/:/}]}});
 
 
 		/**
 		/**
 		 * Highlights a code block. If the <code> node has the
 		 * Highlights a code block. If the <code> node has the
-		 * 'line-numbers' class we also generate slide numbers.
+		 * 'data-line-numbers' attribute we also generate slide
+		 * numbers.
 		 */
 		 */
 		highlightBlock: function( block ) {
 		highlightBlock: function( block ) {
 
 
@@ -119,7 +120,7 @@ c:[{cN:"comment",b:/\(\*/,e:/\*\)/},e.ASM,e.QSM,e.CNM,{b:/\{/,e:/\}/,i:/:/}]}});
 
 
 		/**
 		/**
 		 * Visually emphasize specific lines within a code block.
 		 * Visually emphasize specific lines within a code block.
-		 * This onnly works on blocks with line numbering turned on.
+		 * This only works on blocks with line numbering turned on.
 		 *
 		 *
 		 * @param {HTMLElement} block a <code> block
 		 * @param {HTMLElement} block a <code> block
 		 * @param {String} [linesToHighlight] The lines that should be
 		 * @param {String} [linesToHighlight] The lines that should be