Skip to content

Commit

Permalink
Fix typos (#1111)
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed Sep 21, 2024
1 parent 71da654 commit e35b953
Show file tree
Hide file tree
Showing 17 changed files with 33 additions and 33 deletions.
18 changes: 9 additions & 9 deletions cmd/sst/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -469,8 +469,8 @@ var root = &cli.Command{
{
Name: "target",
Description: cli.Description{
Short: "Comma seperated list of target URNs",
Long: "Comma seperated list of target URNs.",
Short: "Comma separated list of target URNs",
Long: "Comma separated list of target URNs.",
},
},
},
Expand Down Expand Up @@ -501,7 +501,7 @@ var root = &cli.Command{
"This is useful for cases when you pull some changes from a teammate and want to",
"see what will be deployed; before doing the actual deploy.",
"",
"Optionall, you can diff a specific set of resources by passing in a list of their URNs.",
"Optionally, you can diff a specific set of resources by passing in a list of their URNs.",
"",
"```bash frame=\"none\"",
"sst diff --target urn:pulumi:prod::www::sst:aws:Astro::Astro,urn:pulumi:prod::www::sst:aws:Bucket::Assets",
Expand All @@ -522,8 +522,8 @@ var root = &cli.Command{
{
Name: "target",
Description: cli.Description{
Short: "Comma seperated list of target URNs",
Long: "Comma seperated list of target URNs.",
Short: "Comma separated list of target URNs",
Long: "Comma separated list of target URNs.",
},
},
{
Expand Down Expand Up @@ -852,8 +852,8 @@ var root = &cli.Command{
Name: "target",
Type: "string",
Description: cli.Description{
Short: "Comma seperated list of target URNs",
Long: "Comma seperated list of target URNs.",
Short: "Comma separated list of target URNs",
Long: "Comma separated list of target URNs.",
},
},
},
Expand Down Expand Up @@ -991,8 +991,8 @@ var root = &cli.Command{
Name: "target",
Type: "string",
Description: cli.Description{
Short: "Comma seperated list of target URNs",
Long: "Comma seperated list of target URNs.",
Short: "Comma separated list of target URNs",
Long: "Comma separated list of target URNs.",
},
},
},
Expand Down
10 changes: 5 additions & 5 deletions cmd/sst/mosaic/multiplexer/tcell-term/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ func csiEntry(r rune, p *Parser) stateFn {
return ground
default:
// Return to ground on unexpected characters
p.emit(fmt.Errorf("unexpected characted: %c", r))
p.emit(fmt.Errorf("unexpected character: %c", r))
return ground
}
}
Expand Down Expand Up @@ -462,7 +462,7 @@ func csiParam(r rune, p *Parser) stateFn {
return csiIgnore
default:
// Return to ground on unexpected characters
p.emit(fmt.Errorf("unexpected characted: %c", r))
p.emit(fmt.Errorf("unexpected character: %c", r))
return ground
}
}
Expand Down Expand Up @@ -521,7 +521,7 @@ func csiIntermediate(r rune, p *Parser) stateFn {
return ground
default:
// Return to ground on unexpected characters
p.emit(fmt.Errorf("unexpected characted: %c", r))
p.emit(fmt.Errorf("unexpected character: %c", r))
return ground
}
}
Expand Down Expand Up @@ -586,7 +586,7 @@ func dcsIntermediate(r rune, p *Parser) stateFn {
return dcsPassthrough
default:
// Return to ground on unexpected characters
p.emit(fmt.Errorf("unexpected characted: %c", r))
p.emit(fmt.Errorf("unexpected character: %c", r))
return ground
}
}
Expand Down Expand Up @@ -617,7 +617,7 @@ func dcsParam(r rune, p *Parser) stateFn {
return dcsPassthrough
default:
// Return to ground on unexpected characters
p.emit(fmt.Errorf("unexpected characted: %c", r))
p.emit(fmt.Errorf("unexpected character: %c", r))
return ground
}
}
Expand Down
4 changes: 2 additions & 2 deletions examples/aws-angular/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ <h1>Hello, {{ title }}</h1>
<div class="social-links">
<a
href="https://github.com/angular/angular"
aria-label="Github"
aria-label="GitHub"
target="_blank"
rel="noopener"
>
Expand All @@ -272,7 +272,7 @@ <h1>Hello, {{ title }}</h1>
viewBox="0 0 25 24"
fill="none"
xmlns="http://www.w3.org/2000/svg"
alt="Github"
alt="GitHub"
>
<path
d="M12.3047 0C5.50634 0 0 5.50942 0 12.3047C0 17.7423 3.52529 22.3535 8.41332 23.9787C9.02856 24.0946 9.25414 23.7142 9.25414 23.3871C9.25414 23.0949 9.24389 22.3207 9.23876 21.2953C5.81601 22.0377 5.09414 19.6444 5.09414 19.6444C4.53427 18.2243 3.72524 17.8449 3.72524 17.8449C2.61064 17.082 3.81137 17.0973 3.81137 17.0973C5.04697 17.1835 5.69604 18.3647 5.69604 18.3647C6.79321 20.2463 8.57636 19.7029 9.27978 19.3881C9.39052 18.5924 9.70736 18.0499 10.0591 17.7423C7.32641 17.4347 4.45429 16.3765 4.45429 11.6618C4.45429 10.3185 4.9311 9.22133 5.72065 8.36C5.58222 8.04931 5.16694 6.79833 5.82831 5.10337C5.82831 5.10337 6.85883 4.77319 9.2121 6.36459C10.1965 6.09082 11.2424 5.95546 12.2883 5.94931C13.3342 5.95546 14.3801 6.09082 15.3644 6.36459C17.7023 4.77319 18.7328 5.10337 18.7328 5.10337C19.3942 6.79833 18.9789 8.04931 18.8559 8.36C19.6403 9.22133 20.1171 10.3185 20.1171 11.6618C20.1171 16.3888 17.2409 17.4296 14.5031 17.7321C14.9338 18.1012 15.3337 18.8559 15.3337 20.0084C15.3337 21.6552 15.3183 22.978 15.3183 23.3779C15.3183 23.7009 15.5336 24.0854 16.1642 23.9623C21.0871 22.3484 24.6094 17.7341 24.6094 12.3047C24.6094 5.50942 19.0999 0 12.3047 0Z"
Expand Down
4 changes: 2 additions & 2 deletions examples/aws-swift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Deploy just like any other sst project:
sst deploy --stage production
```

### Github Actions
### GitHub Actions

When deploying from your local machine, your application is built with Docker. If you want to deploy from Github Actions or another CI service, you'll need to use the swift:5.10-amazonlinux2 image.
When deploying from your local machine, your application is built with Docker. If you want to deploy from GitHub Actions or another CI service, you'll need to use the swift:5.10-amazonlinux2 image.

## Multiple Targets

Expand Down
2 changes: 1 addition & 1 deletion pkg/runtime/python/python.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ func (r *PythonRuntime) Run(ctx context.Context, input *runtime.RunInput) (runti
// Get the directory of the Handler
handlerDir := filepath.Dir(filepath.Join(input.Build.Out, input.Build.Handler))

// We have to manually construct the dependencies to install because uv curerntly does not support importing a
// We have to manually construct the dependencies to install because uv currently does not support importing a
// foreign pyproject.toml as a configuration file and we have to run the python-runtime file rather than
// the handler file

Expand Down
2 changes: 1 addition & 1 deletion platform/functions/cf-ssr-site-router-worker/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
if (SST_ASSET_MANIFEST[pathname]) {
headers.set("etag", SST_ASSET_MANIFEST[pathname]);
headers.set("content-type", object.metadata.contentType);
headers.set("cache-controle", object.metadata.cacheControl);
headers.set("cache-control", object.metadata.cacheControl);
}
const response = new Response(object.value, {
status,
Expand Down
4 changes: 2 additions & 2 deletions platform/functions/nodejs-runtime/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ while (true) {
Number(result.headers.get("lambda-runtime-deadline-ms")) - Date.now(),
0,
),
// If identity is null, we want to mimick AWS behavior and return undefined
// If identity is null, we want to mimic AWS behavior and return undefined
identity: (() => {
const header = result.headers.get("lambda-runtime-cognito-identity");
return header ? JSON.parse(header) : undefined;
})(),
/// If clientContext is null, we want to mimick AWS behavior and return undefined
/// If clientContext is null, we want to mimic AWS behavior and return undefined
clientContext: (() => {
const header = result.headers.get("lambda-runtime-client-context");
return header ? JSON.parse(header) : undefined;
Expand Down
2 changes: 1 addition & 1 deletion platform/src/components/aws/cdn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ export class Cdn extends Component {
// },
// ```
//
// Ideally, we don't santize the logical name. But that's a breaking change.
// Ideally, we don't sanitize the logical name. But that's a breaking change.
//
// As a workaround, starting v3.0.79, we prefix the logical name with a unique
// index for records with logical names that will trash.
Expand Down
2 changes: 1 addition & 1 deletion platform/src/components/aws/dns.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
* }
* ```
*
* You can also sepcify a hosted zone ID if you have multiple hosted zones with the same domain.
* You can also specify a hosted zone ID if you have multiple hosted zones with the same domain.
*
* ```ts
* {
Expand Down
2 changes: 1 addition & 1 deletion platform/src/components/aws/remix.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ export class Remix extends Component implements Link.Linkable {

resolvedConfig = (await vite.resolveConfig(
// root defaults to process.cwd(), which will be where the sst.config.ts file is located
// since we're invoking vite programatically. In a monorepo, this is likely incorrect, and
// since we're invoking vite programmatically. In a monorepo, this is likely incorrect, and
// should be the defined sitePath.
{ ...viteConfig.config, root: viteConfig.config.root ?? sitePath },
"build",
Expand Down
2 changes: 1 addition & 1 deletion platform/src/components/aws/vector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ export class Vector extends Component implements Link.Linkable {
* @param clusterID The RDS cluster id of the existing Vector database.
*
* @example
* Imagine you create a vector databse in the `dev` stage. And in your personal stage `frank`,
* Imagine you create a vector database in the `dev` stage. And in your personal stage `frank`,
* instead of creating a new database, you want to share the same database from `dev`.
*
* ```ts title="sst.config.ts"
Expand Down
2 changes: 1 addition & 1 deletion platform/src/components/linkable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class Linkable<T extends Record<string, any>>
* This overrides the built-in link and lets you create your own.
*
* :::tip
* You can modfiy the permissions granted by a linked resource.
* You can modify the permissions granted by a linked resource.
* :::
*
* In the above example, we're modifying the permissions to access a linked `sst.aws.Bucket`
Expand Down
2 changes: 1 addition & 1 deletion platform/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ export interface TagEvent {
}

/**
* A git event for when a pull request is updated or deleted. For exampple:
* A git event for when a pull request is updated or deleted. For example:
*
* ```js
* {
Expand Down
4 changes: 2 additions & 2 deletions www/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -656,11 +656,11 @@ function renderType(
// "type": "literal",
// "value": "arm64"
// }
const santized =
const sanitized =
typeof type.value === "string"
? type.value!.replace(/([*:])/g, "\\$1")
: type.value;
return `<code class="symbol">&ldquo;</code><code class="primitive">${santized}</code><code class="symbol">&rdquo;</code>`;
return `<code class="symbol">&ldquo;</code><code class="primitive">${sanitized}</code><code class="symbol">&rdquo;</code>`;
}
function renderTemplateLiteralType(type: TypeDoc.TemplateLiteralType) {
// ie. memory: `${number} MB`
Expand Down
2 changes: 1 addition & 1 deletion www/src/content/docs/docs/migrate-from-v2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,7 @@ Finally, when you run `sst remove` for your v2 app, it'll remove the CloudFormat

### CI/CD

You probably have _git push to deploy_ or CI/CD set up for your apps. If you are using Github Actions; there shouldn't be much of a difference between v2 and v3.
You probably have _git push to deploy_ or CI/CD set up for your apps. If you are using GitHub Actions; there shouldn't be much of a difference between v2 and v3.

If you are using [**_Seed_**](https://seed.run) to deploy your v2 app; then you'll want to migrate to using [Autodeploy](/docs/console/#autodeploy) on the [SST Console](/docs/console/). We are currently [not planning to support v3 on Seed](https://seed.run/blog/seed-and-sst-v3).

Expand Down
2 changes: 1 addition & 1 deletion www/src/content/docs/docs/providers.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Read more about [configuring providers](/docs/reference/config/#providers).

The provider packages come with components that you can use in your app.

For example, running `sst add aws` will allow you to use all the components under the `aws` namepsace.
For example, running `sst add aws` will allow you to use all the components under the `aws` namespace.

```ts title="sst.config.ts"
new aws.s3.BucketV2("b", {
Expand Down
2 changes: 1 addition & 1 deletion www/src/content/docs/docs/state.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Say we've deployed a `Function` with it set to `{ timeout: 10 seconds" }`. At th

- We now go change the timeout to 20 seconds in the AWS Console.
- The config and state are out of sync with the resource since they are still set to 10 seconds.
- Now if we deploy our app, the config will be comapred to the state.
- Now if we deploy our app, the config will be compared to the state.
- It'll find no differences and so it won't update the resource.

The config and state will stay out of sync with the resource.
Expand Down

0 comments on commit e35b953

Please sign in to comment.