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. // Caller contains all Typst commands that are supported by this library.
type Caller interface { type Caller interface {
// VersionString returns the version string as returned by Typst. // VersionString returns the Typst version as a string.
VersionString() (string, error) VersionString() (string, error)
// Fonts returns all fonts that are available to Typst. // 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. // Ensure that CLI implements the Caller interface.
var _ Caller = CLI{} 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) { func (c CLI) VersionString() (string, error) {
// Get path of executable. // Get path of executable.
execPath := ExecutablePath execPath := ExecutablePath

View File

@ -38,7 +38,7 @@ type Docker struct {
// Ensure that Docker implements the Caller interface. // Ensure that Docker implements the Caller interface.
var _ Caller = Docker{} 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) { func (d Docker) VersionString() (string, error) {
image := DockerDefaultImage image := DockerDefaultImage
if d.Image != "" { if d.Image != "" {