Skip to content

Commit 82f9411

Browse files
committed
Sylvia tutorial first messages review fixes
1 parent 67ab1f4 commit 82f9411

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

src/pages/tutorial/setup-environment.mdx

+3-3
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,9 @@ All contracts (1) passed checks!
9494

9595
## Macro expansion
9696

97-
In VSCode you can hover over a macro like [`#[contract]`](../sylvia/macros/contract), do `shift+p`
98-
and then type: `rust analyzer: Expand macro recursively`. This will open a window with a fully
99-
expanded macro, which you can browse. In Vim you can consider installing the
97+
In VSCode you can hover over a macro like [`#[contract]`](../sylvia/macros/contract), press
98+
`shift+p` and then type: `rust analyzer: Expand macro recursively`. This will open a window with a
99+
fully expanded macro, which you can browse. In Vim you can consider installing the
100100
[rustaceanvim](https://github.com/mrcjkb/rustaceanvim) plugin. You can also use `cargo expand` tool
101101
from CLI, like this:
102102

Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
22
"contract-creation": "Contract creation",
3+
"entry-points": "Entry points",
34
"first-messages": "First messages"
45
}

src/pages/tutorial/sylvia-contract/contract-creation.mdx

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ cargo generate CosmWasm/sylvia-template
1616

1717
The [`sylvia-template`](https://github.com/CosmWasm/sylvia-template) will generate a lot of code for
1818
you. Because this tutorial aims to guide you step-by-step through the process of creating your first
19-
contract we will omit the use of the template and show you how to create it from the start.
19+
contract we will omit the use of the template and show you how to create it from the scratch.
2020

2121
## New project
2222

@@ -48,7 +48,7 @@ sylvia = "1.3.1"
4848
[documentation](https://docs.rs/sylvia/latest/sylvia/#reexports).
4949
</Callout>
5050

51-
As you can see, I added a `crate-type` field for the library section. Generating the
51+
As you can see, we added a `crate-type` field for the library section. Generating the
5252
[`cdylib`](https://doc.rust-lang.org/reference/linkage.html) is required to create a proper web
5353
assembly binary. The downside of this is that such a library cannot be used as a dependency for
5454
other Rust crates - for now, it is not needed, but later we will show how to approach reusing

0 commit comments

Comments
 (0)