Skip to content

Commit 37ca2b4

Browse files
authored
chore: fix typos (#2940)
* docs: typos * fix: typos
1 parent 94c563f commit 37ca2b4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+94
-94
lines changed

.github/workflows/ci-test-go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
- name: go test
121121
# only run tests on linux, there are a number of things that won't allow the tests to run on anything else
122122
# many (maybe, all?) images used can only be build on Linux, they don't have Windows in their manifest, and
123-
# we can't put Windows Server in "Linux Mode" in Github actions
123+
# we can't put Windows Server in "Linux Mode" in GitHub actions
124124
# another, host mode is only available on Linux, and we have tests around that, do we skip them?
125125
if: ${{ inputs.run-tests }}
126126
working-directory: ./${{ inputs.project-directory }}

.github/workflows/conventions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
with:
2323
# We may not need a scope on every commit (i.e. repo-level change).
2424
#
25-
# feat!: read config consistenly
25+
# feat!: read config consistently
2626
# feat(redis): support for clustering
2727
# chore(redis): update tests
2828
# fix(redis): trim connection string

cleanup.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func TerminateContainer(container Container, options ...TerminateOption) error {
107107
return nil
108108
}
109109

110-
// isNil returns true if val is nil or an nil instance false otherwise.
110+
// isNil returns true if val is nil or a nil instance false otherwise.
111111
func isNil(val any) bool {
112112
if val == nil {
113113
return true

container.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ type ImageBuildInfo interface {
7979
GetTag() string // get tag label for image
8080
BuildLogWriter() io.Writer // for output of build log, use io.Discard to disable the output
8181
ShouldBuildImage() bool // return true if the image needs to be built
82-
GetBuildArgs() map[string]*string // return the environment args used to build the from Dockerfile
82+
GetBuildArgs() map[string]*string // return the environment args used to build the Dockerfile
8383
GetAuthConfigs() map[string]registry.AuthConfig // Deprecated. Testcontainers will detect registry credentials automatically. Return the auth configs to be able to pull from an authenticated docker registry
8484
}
8585

docker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ func (c *DockerContainer) CopyDirToContainer(ctx context.Context, hostDirPath st
618618
}
619619

620620
if !dir {
621-
// it's not a dir: let the consumer to handle an error
621+
// it's not a dir: let the consumer handle the error
622622
return fmt.Errorf("path %s is not a directory", hostDirPath)
623623
}
624624

docker_auth_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -493,7 +493,7 @@ func requireValidAuthConfig(t *testing.T) {
493493
require.NoError(t, err)
494494

495495
// We can only check the keys as the values are not deterministic as they depend
496-
// on users environment.
496+
// on user's environment.
497497
expected := map[string]registry.AuthConfig{
498498
core.IndexDockerIO: {},
499499
exampleRegistry: {},

docker_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,7 @@ func TestDockerContainerCopyDirToContainer(t *testing.T) {
13911391
CleanupContainer(t, nginxC)
13921392
require.NoError(t, err)
13931393

1394-
p := filepath.Join(".", "testdata", "Dokerfile")
1394+
p := filepath.Join(".", "testdata", "Dockerfile")
13951395
err = nginxC.CopyDirToContainer(ctx, p, "/tmp/testdata/Dockerfile", 700)
13961396
require.Error(t, err) // copying a file using the directory method will raise an error
13971397

@@ -1870,7 +1870,7 @@ func assertExtractedFiles(t *testing.T, ctx context.Context, container Container
18701870
}
18711871

18721872
fp := filepath.Join(containerFilePath, srcFile.Name())
1873-
// copy file by file, as there is a limitation in the Docker client to copy an entiry directory from the container
1873+
// copy file by file, as there is a limitation in the Docker client to copy an entire directory from the container
18741874
// paths for the container files are using Linux path separators
18751875
fd, err := container.CopyFileFromContainer(ctx, fp)
18761876
require.NoError(t, err, "Path not found in container: %s", fp)

docs/contributing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
There are many ways to contribute, from writing tutorials or blog posts, improving the documentation, submitting bug reports and feature requests, or writing code for the core library or for a technology module.
66

7-
In any case, if you like the project, please star the project on [Github](https://github.com/testcontainers/testcontainers-go/stargazers) and help spread the word :)
7+
In any case, if you like the project, please star the project on [GitHub](https://github.com/testcontainers/testcontainers-go/stargazers) and help spread the word :)
88
Also join our [Slack workspace](http://slack.testcontainers.org) to get help, share your ideas, and chat with the community.
99

1010
## Questions
@@ -49,7 +49,7 @@ Please just be sure to:
4949
* For linting just the modulegen: `make -C modulegen lint`
5050
* verify all tests are passing. Build and test the project with `make test-all` to do this.
5151
* For a given module or example, go to the module or example directory and run `make test`.
52-
* If you find an `ld warning` message on MacOS, you can ignore it. It is a indeed a warning: https://github.com/golang/go/issues/61229
52+
* If you find an `ld warning` message on MacOS, you can ignore it. It is indeed a warning: https://github.com/golang/go/issues/61229
5353
> === Errors
5454
> ld: warning: '/private/var/folders/3y/8hbf585d4yl6f8j5yzqx6wz80000gn/T/go-link-2319589277/000018.o' has malformed LC_DYSYMTAB, expected 98 undefined symbols to start at index 1626, found 95 undefined symbols starting at index 1626
5555
@@ -102,4 +102,4 @@ make clean-docs
102102
Note that documentation for pull requests will automatically be published by Netlify as 'deploy previews'.
103103
These deployment previews can be accessed via the `deploy/netlify` check that appears for each pull request.
104104

105-
Please check the Github comment Netlify posts on the PR for the URL to the deployment preview.
105+
Please check the GitHub comment Netlify posts on the PR for the URL to the deployment preview.

docs/features/common_functional_options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ In more locked down / secured environments, it can be problematic to pull images
66

77
An image name substitutor converts a Docker image name, as may be specified in code, to an alternative name. This is intended to provide a way to override image names, for example to enforce pulling of images from a private registry.
88

9-
_Testcontainers for Go_ exposes an interface to perform this operations: `ImageSubstitutor`, and a No-operation implementation to be used as reference for custom implementations:
9+
_Testcontainers for Go_ exposes an interface to perform this operation: `ImageSubstitutor`, and a No-operation implementation to be used as reference for custom implementations:
1010

1111
<!--codeinclude-->
1212
[Image Substitutor Interface](../../options.go) inside_block:imageSubstitutor

docs/features/creating_container.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ In the following example, we are going to create a container using all the lifec
143143
_Testcontainers for Go_ comes with a default logging hook that will print a log message for each container lifecycle event, using the default logger. You can add your own logger by passing the `testcontainers.DefaultLoggingHook` option to the `ContainerRequest`, passing a reference to your preferred logger:
144144

145145
<!--codeinclude-->
146-
[Use a custom logger for container hooks](../../lifecycle_test.go) inside_block:reqWithDefaultLogginHook
146+
[Use a custom logger for container hooks](../../lifecycle_test.go) inside_block:reqWithDefaultLoggingHook
147147
[Custom Logger implementation](../../lifecycle_test.go) inside_block:customLoggerImplementation
148148
<!--/codeinclude-->
149149

@@ -156,7 +156,7 @@ The aforementioned `GenericContainer` function and the `ContainerRequest` struct
156156
<!--/codeinclude-->
157157

158158
!!!warning
159-
The only special case where the modifiers are not applied last, is when there are no exposed ports in the container request and the container does not use a network mode from a container (e.g. `req.NetworkMode = container.NetworkMode("container:$CONTAINER_ID")`). In that case, _Testcontainers for Go_ will extract the ports from the underliying Docker image and export them.
159+
The only special case where the modifiers are not applied last, is when there are no exposed ports in the container request and the container does not use a network mode from a container (e.g. `req.NetworkMode = container.NetworkMode("container:$CONTAINER_ID")`). In that case, _Testcontainers for Go_ will extract the ports from the underlying Docker image and export them.
160160

161161
## Reusable container
162162

0 commit comments

Comments
 (0)