Fix typos and linguistic errors in documentation

Signed-off-by: Sebastien Dionne <survivant00@gmail.com>
This commit is contained in:
Sebastien Dionne 2025-10-10 19:19:56 -04:00
parent 06043136db
commit 3cb0cd490e
9 changed files with 9 additions and 9 deletions

View file

@ -45,7 +45,7 @@ func (b *ParallelTestBuilder) Run(ctx context.Context, ui packersdk.Ui, hook pac
return nil, nil
}
// LockedBuilder wont run until unlock is called
// LockedBuilder won't run until unlock is called
type LockedBuilder struct{ unlock chan interface{} }
func (b *LockedBuilder) ConfigSpec() hcldec.ObjectSpec { return nil }

View file

@ -92,7 +92,7 @@ const (
//
// Parse returns a PackerConfig that contains configuration layout of a packer
// build; sources(builders)/provisioners/posts-processors will not be started
// and their contents wont be verified; Most syntax errors will cause an error,
// and their contents won't be verified; Most syntax errors will cause an error,
// init should be called next to expand dynamic blocks and verify that used
// things do exist.
func (p *Parser) Parse(filename string, varFiles []string, argVars map[string]string) (*PackerConfig, hcl.Diagnostics) {

View file

@ -561,7 +561,7 @@ func looksLikeSentences(s string) bool {
last := runes[len(runes)-1]
// If the first rune is a letter then it must be an uppercase letter. To
// sorts of nudge people into writting sentences. For alphabets that don't
// sort of nudge people into writing sentences. For alphabets that don't
// have the notion of 'upper', this does nothing.
if unicode.IsLetter(first) && !unicode.IsUpper(first) {
return false

View file

@ -14,7 +14,7 @@
// passed by panicwrap to fix that.
//
// panicwrap should be checked for with panicwrap.Wrapped before using this
// librar, since this library won't adapt if the binary is not wrapped.
// library, since this library won't adapt if the binary is not wrapped.
package wrappedreadline
import (

View file

@ -41,7 +41,7 @@ func main() {
func realMain() int {
var wrapConfig panicwrap.WrapConfig
// When following env variable is set, packer
// wont panic wrap itself as it's already wrapped.
// won't panic wrap itself as it's already wrapped.
// i.e.: when terraform runs it.
wrapConfig.CookieKey = "PACKER_WRAP_COOKIE"
wrapConfig.CookieValue = "49C22B1A-3A93-4C98-97FA-E07D18C787B5"

View file

@ -706,7 +706,7 @@ func TestIsDoneInterpolating(t *testing.T) {
expectedErr bool
}{
// Many of these tests are just exercising the regex to make sure it
// doesnt get confused by different kinds of whitespace
// doesn't get confused by different kinds of whitespace
{"charmander-{{ user `spacesaroundticks` }}", false, false},
{"pidgey-{{ user `partyparrot`}}", false, false},
{"jigglypuff-{{ user`notickspaaces`}}", false, false},

View file

@ -302,7 +302,7 @@ func (c *PluginClient) Start() (net.Addr, error) {
}()
// Make sure after we exit we read the lines from stdout forever
// so they dont' block since it is an io.Pipe
// so they don't block since it is an io.Pipe
defer func() {
go func() {
for range linesCh {

View file

@ -1,5 +1,5 @@
# Packer Test Plugin
This directory is meant to be a minimal plugin that we can use for testing Packer.
Any components defined in this plugin are not for use, as they virtually do nothing, and are only here to test Packer's core capabilitities
Any components defined in this plugin are not for use, as they virtually do nothing, and are only here to test Packer's core capabilities

View file

@ -69,7 +69,7 @@ The Scaffolding plugin is intended as a starting point for creating Packer plugi
### Provisioners
- [provisioner](/docs/provisioners/provisioner-name.mdx) - The scaffolding provisioner is used to provisioner
- [provisioner](/docs/provisioners/provisioner-name.mdx) - The scaffolding provisioner is used to provision
Packer builds.
### Post-processors