Skip to content

Commit

Permalink
Update guides/hack from HHVM repository
Browse files Browse the repository at this point in the history
  • Loading branch information
Wilfred authored and github-actions[bot] committed Apr 4, 2024
1 parent cf08801 commit a7afbef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions guides/hack/17-modules/01-introduction.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Modules are an experimental feature for organizing code and separating your internal and external APIs. Modules are collections of Hack files that share an identity or utility.

## Module definitions
You can define a new module with the `new module` keywords.
You can define a new module with a `new module` declaration:

```hack file:foomodule.hack
//// module.hack
Expand Down Expand Up @@ -29,7 +29,7 @@ class Foo {
```

## Module level visibility: `internal`
By placing your code in modules, you can use a new visibility keyword: `internal`. An `internal` symbol can only be accessed from within the module.
By placing your code in a module, you can use a new visibility keyword: `internal`. An `internal` symbol can only be accessed from within the module.

```hack file:foomodule.hack
//// foo_class.hack
Expand Down

0 comments on commit a7afbef

Please sign in to comment.