Skip to content

Commit

Permalink
Merge pull request nrc#135 from md81544/patch-2
Browse files Browse the repository at this point in the history
Update hello-world.md
  • Loading branch information
nrc committed Nov 7, 2022
2 parents b3ce710 + c9a9bda commit f710a42
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ it is a macro. A subset of the standard library is available without needing to
be explicitly imported/included (the prelude). The `println!` macro is included
as part of that subset.

Lets change our example a little bit:
Let's change our example a little bit:

```rust
fn main() {
Expand Down Expand Up @@ -138,7 +138,7 @@ let world: &'static str = "world";
In C++ we write `T x` to declare a variable `x` with type `T`. In Rust we write
`x: T`, whether in `let` statements or function signatures, etc. Mostly we omit
explicit types in `let` statements, but they are required for function
arguments. Lets add another function to see it work:
arguments. Let's add another function to see it work:

```rust
fn foo(_x: &'static str) -> &'static str {
Expand Down

0 comments on commit f710a42

Please sign in to comment.