aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2020-11-14 20:32:44 -0800
committerGitHub <[email protected]>2020-11-14 20:32:44 -0800
commit1362a02d01e0f06f1916d81dac46a941e01f1f55 (patch)
tree851ca001cad2e393cfa07aa1b2b7e4bfe7fc2fed
parentfix: grammer (diff)
downloadblog-master.tar.xz
blog-master.zip
fix: logical error `to_string()` Rust type exampleHEADmaster
-rw-r--r--articles/2020-11-13-systems-languages-for-discord-bots.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/articles/2020-11-13-systems-languages-for-discord-bots.md b/articles/2020-11-13-systems-languages-for-discord-bots.md
index 99c3ae5..b6a0ea8 100644
--- a/articles/2020-11-13-systems-languages-for-discord-bots.md
+++ b/articles/2020-11-13-systems-languages-for-discord-bots.md
@@ -70,15 +70,15 @@ In another comparison, typing is **insanely** similar, take a look at this.
# Example One
```rust
-let value: String = "Hello.";
+let value: String = "Hello!".to_string();
```
# Example Two
```ts
-let value: string = "Hello.";
+let value: string = "Hello!";
```
-Which one do you think is Rust, which one TypeScript? Well, example one was Rust. So you see, the typing system is very similar, so you would catch on in no time.
+Which one do you think is Rust, which one TypeScript? Well, example one was Rust -- ***somewhat obviously***, but you see, the typing system is very similar, so you would catch on in no time.
<small>If you would like more information on either of the typings, here is a list of [Rust's typings](https://doc.rust-lang.org/reference/types.html), and [TypeScript's typings](https://blog.angular-university.io/typescript-2-type-system-how-do-type-definitions-work-in-npm-when-to-use-types-and-why-what-are-compiler-opt-in-types/).</small>