We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee66b65 commit ae39572Copy full SHA for ae39572
strings/.gitignore
@@ -0,0 +1,10 @@
1
+# Generated by Cargo
2
+# will have compiled files and executables
3
+/target/
4
+
5
+# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6
+# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7
+Cargo.lock
8
9
+# These are backup files generated by rustfmt
10
+**/*.rs.bk
strings/src/main.rs
@@ -1,3 +1,6 @@
fn main() {
- println!("Hello, world!");
-}
+ let mut strings = String::new();
+ strings.push_str("Hello ");
+ strings.push_str("World");
+ println!("{}", strings)
+}
0 commit comments