Skip to content

Commit

Permalink
Fixed comment of getSourceLocation()'s returns (#1699)
Browse files Browse the repository at this point in the history
Co-authored-by: Guillaume Grossetie <ggrossetie@yuzutech.fr>
  • Loading branch information
jiakuan and ggrossetie committed May 13, 2023
1 parent a8c4c96 commit d9a403e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/core/src/asciidoctor-core-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ AbstractBlock.prototype.setStyle = function (style) {
/**
* Get the location in the AsciiDoc source where this block begins.
*
* @returns {string} - the style for this block
* @returns {Cursor} - the location in the AsciiDoc source where this block begins
* @memberof AbstractBlock
*/
AbstractBlock.prototype.getSourceLocation = function () {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,7 @@ type ContentModel = 'compound' | 'simple' | 'verbatim' | 'raw' | 'empty'

/**
* Get the location in the AsciiDoc source where this block begins.
* @returns the style for this block
* @returns the location in the AsciiDoc source where this block begins
*/
getSourceLocation(): Cursor;

Expand Down

0 comments on commit d9a403e

Please sign in to comment.