Skip to content

Commit

Permalink
fix readme document and code comment
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysd committed Oct 7, 2024
1 parent 78f3dfd commit 92a9f2a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Other real-world examples:
## Installation

Download binary from [the releases page](https://github.com/rhysd/changelog-from-release/releases) or
build from sources with Go toolchain.
build from sources with Go toolchain (1.21 or later).

```
$ go install github.com/rhysd/changelog-from-release/v3@latest
Expand All @@ -36,6 +36,8 @@ $ changelog-from-release > CHANGELOG.md
$ cat CHANGELOG.md
```

For more command line usage, see the `-help` output.

Automation with [GitHub Actions][gh-actions] is also offered. Please read
[action's README](./action/README.md) for more details.

Expand All @@ -46,8 +48,6 @@ Automation with [GitHub Actions][gh-actions] is also offered. Please read
github_token: ${{ secrets.GITHUB_TOKEN }}
```
For more usage, see `-help` output.

## Reference auto linking
Expand Down Expand Up @@ -110,7 +110,7 @@ cat <<-EOS > CHANGELOG.md
Changelog
=========
This is a footer.
This is a header.
EOS
Expand Down
2 changes: 1 addition & 1 deletion reflink.go
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ func (l *Reflinker) linkURL(n *ast.AutoLink) {
}

// Search the offset of the start of the URL. When the text is a child of some other node, URL
// may not appear just after the previous node. The example is **https://...** where URL appers
// may not appear just after the previous node. The example is **https://...** where URL appears
// after the first **.
offset := bytes.Index(l.src[start:], url)
if offset < 0 {
Expand Down

0 comments on commit 92a9f2a

Please sign in to comment.