Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ms-is-coding authored Nov 28, 2023
1 parent 77e1a13 commit bb62a58
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Hadron is a custom programming language written in C. It is designed to be a ver
To build Hadron, you need to have `gcc` installed on your system. You can build Hadron by running the following commands:

```sh
git clone https://github.com/webd3vs/hadron.git
git clone https://github.com/hadron-lang/hadron.git
cd hadron
make
```
Expand Down Expand Up @@ -58,20 +58,20 @@ Here is an example of a "Hello, world!" program in Hadron:

```c
func main {
log("Hello, world!")
log("Hello, world!")
}
```

And here is an example of a function that calculates the nth Fibonacci number:

```c
func fib(n) {
if (n < 2) return n;
else return fib(n-1) + fib(n-2);
if (n < 2) return n;
else return fib(n-1) + fib(n-2);
}

func main() {
log(fib(10));
log(fib(10));
}
```
Expand Down

0 comments on commit bb62a58

Please sign in to comment.