Skip to content

Commit

Permalink
docs(example): updated and fixed requires in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasvergne committed Dec 11, 2024
1 parent 24b7bba commit 8ecdeac
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion example/basics/factorial.bzi
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
interface Factorial {
fn factorial(self: Factorial, n: int)
fn factorial(self: actor Factorial, n: int)
}

require "std:io"
Expand Down
2 changes: 1 addition & 1 deletion example/basics/loop.bzi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require "std:math"
require "std:io"

interface Loopable {
fn loop(self: Loopable, i: int)
fn loop(self: actor Loopable, i: int)
}

fn Loop(msg: string) => actor < Loopable {
Expand Down
5 changes: 1 addition & 4 deletions example/servers/http.bzi
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
require "std:http": HTTPServer, send_buffer
require "std:io"
require "std:datatypes/string"
require "std:math"
require "std:foundation"

let port = 8000
let server = spawn HTTPServer(port)
Expand All @@ -10,5 +8,4 @@ server->listen(fn(req) => {
req.send_buffer("Hello, world!")
})


print("Server running on port $port")

0 comments on commit 8ecdeac

Please sign in to comment.