From ce63aee338cdea6b0db9da92148e5cea21e0e829 Mon Sep 17 00:00:00 2001 From: Tom Preston-Werner Date: Mon, 3 Feb 2014 17:50:03 -0800 Subject: [PATCH] Fix name of argument in docs for clipBufferPosition --- src/editor.coffee | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/editor.coffee b/src/editor.coffee index 904c8dfa4..3e0ea7023 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -238,15 +238,15 @@ class Editor extends Model # Public: Given a position, this clips it to a real position. # - # For example, if `position`'s row exceeds the row count of the buffer, + # For example, if `bufferPosition`'s row exceeds the row count of the buffer, # or if its column goes beyond a line's length, this "sanitizes" the value # to a real position. # - # * position: + # * bufferPosition: # The {Point} to clip # # Returns the new, clipped {Point}. Note that this could be the same as - # `position` if no clipping was performed. + # `bufferPosition` if no clipping was performed. clipBufferPosition: (bufferPosition) -> @buffer.clipPosition(bufferPosition) # Public: Given a range, this clips it to a real range.