瀏覽代碼

Fix typos in comments

ApisNecros 1 年之前
父節點
當前提交
7b4074a138
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      IntComp/ComputerParameterMode.js

+ 3 - 3
IntComp/ComputerParameterMode.js

@@ -5,14 +5,14 @@ module.exports = {
      * Position Mode
      *
      * When the int computer is in Position mode, the value at the pointer
-     * is interpretted as another address in memory.
+     * is interpreted as another address in memory.
      */
     POSITION_MODE: 0,
     /**
      * Immediate Mode
      *
      * When the int computer is in Immediate Mode, the value at the pointer
-     * is interpretted as its literal value.
+     * is interpreted as its literal value.
      */
     IMMEDIATE_MODE: 1,
     /**
@@ -28,7 +28,7 @@ module.exports = {
      *
      * @param {number} rawOpcode The opcode in memory
      * @param {number} parameterIndex The index of the parameter in the function arguments
-     * @returns {number} Either POSITION_MODE or IMMEDITATE_MODE
+     * @returns {number} Either POSITION_MODE or IMMEDIATE_MODE
      */
     ParseParameterMode: function (rawOpcode, parameterIndex) {
         if (DecimalPlaceIsNonZero(rawOpcode, parameterIndex + 1)) { return this.IMMEDIATE_MODE; }