summaryrefslogtreecommitdiff
path: root/docs/contributing
diff options
context:
space:
mode:
authortokiedokie <thetokiedokie@gmail.com>2020-08-18 01:17:57 +0900
committerGitHub <noreply@github.com>2020-08-17 12:17:57 -0400
commit68e1ba07d3d6716ff651fe6d379b46fb61253a1d (patch)
treeffc1c992fac9bb07939f7b7b6377e99e63823a5d /docs/contributing
parent684eddcc6bf0c1446c9aba0cdf001c661c19ab24 (diff)
typos (#7082)
Diffstat (limited to 'docs/contributing')
-rw-r--r--docs/contributing/development_tools.md4
-rw-r--r--docs/contributing/style_guide.md12
2 files changed, 8 insertions, 8 deletions
diff --git a/docs/contributing/development_tools.md b/docs/contributing/development_tools.md
index c05a1ee98..844ce31f3 100644
--- a/docs/contributing/development_tools.md
+++ b/docs/contributing/development_tools.md
@@ -34,7 +34,7 @@ Format the code:
### Profiling
-To start profiling,
+To start profiling:
```sh
# Make sure we're only building release.
@@ -107,7 +107,7 @@ Current executable set to '../deno/target/debug/deno' (x86_64).
### V8 flags
-V8 has many many internal command-line flags.
+V8 has many many internal command-line flags:
```shell
$ deno run --v8-flags=--help _
diff --git a/docs/contributing/style_guide.md b/docs/contributing/style_guide.md
index 8de0d228f..7656bf431 100644
--- a/docs/contributing/style_guide.md
+++ b/docs/contributing/style_guide.md
@@ -49,7 +49,7 @@ https://chromium.googlesource.com/chromium/src/+/master/styleguide/inclusive_cod
Follow Rust conventions and be consistent with existing code.
-## Typescript
+## TypeScript
The TypeScript portions of the codebase include `cli/js` for the built-ins and
the standard library `std`.
@@ -90,7 +90,7 @@ When designing function interfaces, stick to the following rules.
Other arguments can be objects, but they must be distinguishable from a
'plain' Object runtime, by having either:
- - a distinguishing prototype (e.g. `Array`, `Map`, `Date`, `class MyThing`)
+ - a distinguishing prototype (e.g. `Array`, `Map`, `Date`, `class MyThing`).
- a well-known symbol property (e.g. an iterable with `Symbol.iterator`).
This allows the API to evolve in a backwards compatible way, even when the
@@ -193,7 +193,7 @@ underscore. By convention, only files in its own directory should import it.
We strive for complete documentation. Every exported symbol ideally should have
a documentation line.
-If possible, use a single line for the JS Doc. Example:
+If possible, use a single line for the JSDoc. Example:
```ts
/** foo does bar. */
@@ -235,7 +235,7 @@ comments should be written as:
/** This is a good single line JSDoc. */
```
-And not
+And not:
```ts
/**
@@ -291,7 +291,7 @@ Deno.test("myTestFunction", function () {
Top level functions should use the `function` keyword. Arrow syntax should be
limited to closures.
-Bad
+Bad:
```ts
export const foo = (): string => {
@@ -299,7 +299,7 @@ export const foo = (): string => {
};
```
-Good
+Good:
```ts
export function foo(): string {