aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Rauny <rauny.brandao@gmail.com> 2023-09-18 19:26:25 +0200
committerGravatar GitHub <noreply@github.com> 2023-09-18 10:26:25 -0700
commit8c1c2a0d9dabcf6195dc27b6d5c871af05acfbc3 (patch)
tree71ae1327fe25288c7d3dc91eee9ca0e5ed0eefcd
parentbab9889601eb13c01ebadb1f47752298259700b6 (diff)
downloadbun-8c1c2a0d9dabcf6195dc27b6d5c871af05acfbc3.tar.gz
bun-8c1c2a0d9dabcf6195dc27b6d5c871af05acfbc3.tar.zst
bun-8c1c2a0d9dabcf6195dc27b6d5c871af05acfbc3.zip
fix(docs): update formatting (#5685)
-rw-r--r--docs/guides/util/entrypoint.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/guides/util/entrypoint.md b/docs/guides/util/entrypoint.md
index e53d4c9a1..63d71b630 100644
--- a/docs/guides/util/entrypoint.md
+++ b/docs/guides/util/entrypoint.md
@@ -5,9 +5,9 @@ name: Check if the current file is the entrypoint
Bun provides a handful of module-specific utilities on the [`import.meta`](/docs/api/import-meta) object. Use `import.meta.main` to check if the current file is the entrypoint of the current process.
```ts#index.ts
-if(import.meta.main){
+if (import.meta.main) {
// this file is directly executed with `bun run`
-}else{
+} else {
// this file is being imported by another file
}
```