Skip to content

Commit

Permalink
Use $(< file) instead of $(cat file) (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
akihiro17 committed Jul 2, 2024
1 parent 3d117f6 commit 346b90e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/std/main.ab
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub fun file_exist(path) {
}

pub fun file_read(path) {
return $cat "{path}"$?
return $< "{path}"$?
}

pub fun file_write(path, content) {
Expand Down

0 comments on commit 346b90e

Please sign in to comment.