Skip to content

Commit

Permalink
fix: docstring example
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-jerry-ye committed May 11, 2024
1 parent adee0f7 commit 2e03c44
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion examples/docstring-demo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

We can see the docstring display in the IDE as follows:

<img width="480" src="imgs/docs.jpg">
<img width="480" src="imgs/docs.png">
Binary file removed examples/docstring-demo/imgs/docs.jpg
Binary file not shown.
Binary file added examples/docstring-demo/imgs/docs.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 1 addition & 3 deletions examples/docstring-demo/lib/moon.pkg.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"name": "lib"
}
{}
2 changes: 1 addition & 1 deletion examples/docstring-demo/main/main.mbt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fn init {
fn main {
print(@lib.hello())
}
8 changes: 4 additions & 4 deletions examples/docstring-demo/main/moon.pkg.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "main",
"import": {
"docstring-demo/lib": ""
}
"is_main": true,
"import": [
"docstring-demo/lib"
]
}

0 comments on commit 2e03c44

Please sign in to comment.