Skip to content

Commit

Permalink
Cleanup after renaming the package
Browse files Browse the repository at this point in the history
  • Loading branch information
krader1961 authored and xiaq committed Mar 19, 2020
1 parent f041145 commit a7ed45f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions pkg/eval/platform/platform.go
@@ -1,5 +1,5 @@
// Package `os` exposes variables and functions that deal with the specific
// platform being run on; such as the OS name and CPU architecture.
// Package `platform` exposes variables and functions that deal with the
// specific platform being run on; such as the OS name and CPU architecture.
package platform

import (
Expand All @@ -11,14 +11,14 @@ import (

//elvdoc:var arch
//
// The architecture of the platform; e.g., amd64, arm, ppc.
// The architecture of the platform; e.g. amd64, arm, ppc.
// This corresponds to Go's
// [`GOARCH`](https://pkg.go.dev/runtime?tab=doc#pkg-constants) constant.
// This is read-only.

//elvdoc:var os
//
// The name of the operating system; e.g., darwin (macOS), linux, etc.
// The name of the operating system; e.g. darwin (macOS), linux, etc.
// This corresponds to Go's
// [`GOOS`](https://pkg.go.dev/runtime?tab=doc#pkg-constants) constant.
// This is read-only.
Expand Down
2 changes: 1 addition & 1 deletion pkg/eval/platform/platform_test.go
Expand Up @@ -9,7 +9,7 @@ import (

var That = eval.That

func TestOs(t *testing.T) {
func TestPlatform(t *testing.T) {
setup := func(ev *eval.Evaler) { ev.Builtin.AddNs("platform", Ns) }
eval.TestWithSetup(t, setup,
That(`put $platform:arch`).Puts(runtime.GOARCH),
Expand Down
2 changes: 1 addition & 1 deletion website/ref/index.toml
Expand Up @@ -12,7 +12,7 @@ title = "The Editor Module (edit:)"

[[articles]]
name = "platform"
title = "Access to the platforms identifying data (platform:)"
title = "Access to the platform's identifying data (platform:)"

[[articles]]
name = "re"
Expand Down
2 changes: 1 addition & 1 deletion website/ref/platform.md
Expand Up @@ -2,6 +2,6 @@

# Introduction

The `platform:` module provides access to the platforms identifying data.
The `platform:` module provides access to the platform's identifying data.

@elvdoc -ns platform: -dir ../pkg/eval/platform

0 comments on commit a7ed45f

Please sign in to comment.