Skip to content

Commit

Permalink
fixes strings playground example
Browse files Browse the repository at this point in the history
  • Loading branch information
kritzcreek committed Nov 7, 2024
1 parent 2856d73 commit d99d6fe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions playground/examples/strings.nemo
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ fn print_bytes(s: Bytes) {
}

// The following functions aren't used in the example, but they're nice to have
fn bytes_eq(a: Bytes, b: Bytes) -> bool {
fn bytes_eq(a: Bytes, b: Bytes) -> Bool {
let len = bytes_len(a);
if len != bytes_len(b) {
return false;
Expand Down Expand Up @@ -148,7 +148,7 @@ fn str_concat(a : Str, b : Str) -> Str {
Str { buf = buf, offset = 0, len = len }
}

fn str_eq(a : Str, b : Str) -> bool {
fn str_eq(a : Str, b : Str) -> Bool {
if a.len != b.len {
return false;
} else {};
Expand Down

0 comments on commit d99d6fe

Please sign in to comment.