Skip to content

Commit

Permalink
Fix syntax in readme snippet (#691)
Browse files Browse the repository at this point in the history
* add .vscode to gitignore

* fix syntax fe program
  • Loading branch information
vuvoth authored Mar 28, 2022
1 parent edba011 commit 61f09d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
tarpaulin-report.html
/output
/docs/tmp_snippets
.vscode
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ contract GuestBook:

pub fn sign(self, ctx: Context, book_msg: String<100>):
self.messages[ctx.msg_sender()] = book_msg
emit Signed(ctx, book_msg=book_msg)
emit Signed(ctx, book_msg: book_msg)

pub fn get_msg(self, addr: address) -> String<100>:
return self.messages[addr].to_mem()
Expand Down

0 comments on commit 61f09d6

Please sign in to comment.