Skip to content

Commit

Permalink
update .hvm to .bend
Browse files Browse the repository at this point in the history
  • Loading branch information
geekyayush committed May 18, 2024
1 parent e7af029 commit 18a01f4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/basics-of-bend.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ def main():
return "Hello, World!"
```

To run this program, save it in a file named `hello_world.hvm`. Then, execute it using the following command in your terminal:
To run this program, save it in a file named `hello_world.bend`. Then, execute it using the following command in your terminal:

```sh
bend run hello_world.hvm
bend run hello_world.bend
```

You should see the output "Hello, World!" in your console.
Expand Down
10 changes: 5 additions & 5 deletions src/setting-up-your-environment.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,16 +62,16 @@ mkdir bend_project
cd bend_project
```

Inside this directory, create a new file named `main.hvm` which will be our entry point for Bend programs.
Inside this directory, create a new file named `main.bend` which will be our entry point for Bend programs.

```sh
touch main.hvm
touch main.bend
```

Open `main.hvm` in your text editor and type in the following code:
Open `main.bend` in your text editor and type in the following code:

```python
# main.hvm
# main.bend
def main():
return "Hello, Bend!"
```
Expand All @@ -81,7 +81,7 @@ def main():
To compile and run your Bend program, you'll use the `bend` command followed by the `run` subcommand and the file name:

```sh
bend run main.hvm
bend run main.bend
```

You should see the output `Hello, Bend!` in your terminal.
Expand Down

0 comments on commit 18a01f4

Please sign in to comment.