浏览代码

haxe.display.Position values are 1-based (closes #6782)

Aleksandr Kuzmenko 6 年之前
父节点
当前提交
2514fdae66
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      std/haxe/display/Position.hx

+ 3 - 3
std/haxe/display/Position.hx

@@ -22,11 +22,11 @@
 package haxe.display;
 
 /**
-    Position in a text document expressed as zero-based line and character offset.
+    Position in a text document expressed as 1-based line and character offset.
 **/
 typedef Position = {
     /**
-        Line position in a document (zero-based).
+        Line position in a document (1-based).
     **/
     var line:Int;
 
@@ -37,7 +37,7 @@ typedef Position = {
 }
 
 /**
-    A range in a text document expressed as (zero-based) start and end positions.
+    A range in a text document expressed as (1-based) start and end positions.
 **/
 typedef Range = {
     /**