Skip to content

Commit

Permalink
a Removed symbol from soroban-sdk imports (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
anupsdf authored Apr 12, 2023
1 parent 1804cca commit ad85eef
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/getting-started/hello-world.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ Once you've created a project, writing a contract involves writing Rust code in
All contracts should begin with `#![no_std]` to ensure that the Rust standard library is not included in the build. The Rust standard library is large and not well suited to being deployed into small programs like those deployed to blockchains.

```rust
use soroban_sdk::{contractimpl, symbol, vec, Env, Symbol, Vec};
use soroban_sdk::{contractimpl, vec, Env, Symbol, Vec};
```

The contract will need to import the types and macros that it needs from the `soroban-sdk` crate. Take a look at [Create a Project](#create-new-project) to see how to setup a project.
Expand All @@ -178,7 +178,7 @@ Putting those pieces together a simple contract will look like this.

```rust title="src/lib.rs"
#![no_std]
use soroban_sdk::{contractimpl, symbol, vec, Env, Symbol, Vec};
use soroban_sdk::{contractimpl, vec, Env, Symbol, Vec};

pub struct Contract;

Expand All @@ -201,7 +201,7 @@ Given a simple contract like the contract demonstrated in the Write a Contract s

```rust
#![no_std]
use soroban_sdk::{contractimpl, symbol, vec, Env, Symbol, Vec};
use soroban_sdk::{contractimpl, vec, Env, Symbol, Vec};

pub struct Contract;

Expand All @@ -223,7 +223,7 @@ mod test;
#![cfg(test)]

use super::{Contract, ContractClient};
use soroban_sdk::{symbol, vec, Env};
use soroban_sdk::{vec, Env};

#[test]
fn test() {
Expand Down

0 comments on commit ad85eef

Please sign in to comment.