Update VersionString comment

This commit is contained in:
David Vogel 2025-11-16 12:05:09 +00:00
parent 37d4b485dd
commit 24c09dfcbe
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import "io"
// Caller contains all Typst commands that are supported by this library.
type Caller interface {
// VersionString returns the version string as returned by Typst.
// VersionString returns the Typst version as a string.
VersionString() (string, error)
// Fonts returns all fonts that are available to Typst.

2
cli.go
View File

@ -22,7 +22,7 @@ type CLI struct {
// Ensure that CLI implements the Caller interface.
var _ Caller = CLI{}
// VersionString returns the version string as returned by Typst.
// VersionString returns the Typst version as a string.
func (c CLI) VersionString() (string, error) {
// Get path of executable.
execPath := ExecutablePath

View File

@ -38,7 +38,7 @@ type Docker struct {
// Ensure that Docker implements the Caller interface.
var _ Caller = Docker{}
// VersionString returns the version string as returned by Typst.
// VersionString returns the Typst version as a string.
func (d Docker) VersionString() (string, error) {
image := DockerDefaultImage
if d.Image != "" {