diff --git a/en/src/basic-types/functions.md b/en/src/basic-types/functions.md index a9acba0..6f4abfe 100644 --- a/en/src/basic-types/functions.md +++ b/en/src/basic-types/functions.md @@ -98,4 +98,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/basic-types/functions.md)(under the solutions path), but only use it when you need it \ No newline at end of file diff --git a/en/src/basic-types/numbers.md b/en/src/basic-types/numbers.md index 32a1c95..75e5b1b 100644 --- a/en/src/basic-types/numbers.md +++ b/en/src/basic-types/numbers.md @@ -183,4 +183,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/basic-types/numbers.md)(under the solutions path), but only use it when you need it diff --git a/en/src/compound-types/array.md b/en/src/compound-types/array.md index d884a3b..281c141 100644 --- a/en/src/compound-types/array.md +++ b/en/src/compound-types/array.md @@ -99,4 +99,4 @@ fn main() { ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/compound-types/array.md)(under the solutions path), but only use it when you need it \ No newline at end of file diff --git a/en/src/compound-types/enum.md b/en/src/compound-types/enum.md index d5d1d81..056e577 100644 --- a/en/src/compound-types/enum.md +++ b/en/src/compound-types/enum.md @@ -208,4 +208,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/compound-types/enum.md)(under the solutions path), but only use it when you need it \ No newline at end of file diff --git a/en/src/compound-types/slice.md b/en/src/compound-types/slice.md index 53f981f..c883c3e 100644 --- a/en/src/compound-types/slice.md +++ b/en/src/compound-types/slice.md @@ -97,4 +97,4 @@ fn first_word(s: &str) -> &str { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/compound-types/slice.md)(under the solutions path), but only use it when you need it diff --git a/en/src/compound-types/string.md b/en/src/compound-types/string.md index 77cb702..2d02825 100644 --- a/en/src/compound-types/string.md +++ b/en/src/compound-types/string.md @@ -264,4 +264,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/compound-types/string.md)(under the solutions path), but only use it when you need it diff --git a/en/src/compound-types/struct.md b/en/src/compound-types/struct.md index 4e6f2fd..924a547 100644 --- a/en/src/compound-types/struct.md +++ b/en/src/compound-types/struct.md @@ -228,4 +228,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/compound-types/struct.md)(under the solutions path), but only use it when you need it \ No newline at end of file diff --git a/en/src/compound-types/tuple.md b/en/src/compound-types/tuple.md index b882cd6..1861797 100644 --- a/en/src/compound-types/tuple.md +++ b/en/src/compound-types/tuple.md @@ -86,4 +86,4 @@ fn sum_multiply(nums: (i32, i32)) -> (i32, i32) { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/compound-types/tuple.md)(under the solutions path), but only use it when you need it \ No newline at end of file diff --git a/en/src/crate-module/crate.md b/en/src/crate-module/crate.md index 6f0e2bb..9b0f1bd 100644 --- a/en/src/crate-module/crate.md +++ b/en/src/crate-module/crate.md @@ -106,4 +106,4 @@ After this step, there should be two crates in package `hello-package`: **a bina Yep, as you can see, the above package structure is very standard and is widely used in many Rust projects. -> You can find the solutions [here](https://github.com/sunface/rust-by-practice) (under the solutions path), but only use it when you need it :) \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/crate.md) (under the solutions path), but only use it when you need it :) \ No newline at end of file diff --git a/en/src/crate-module/module.md b/en/src/crate-module/module.md index 164b8cd..cb2c467 100644 --- a/en/src/crate-module/module.md +++ b/en/src/crate-module/module.md @@ -192,4 +192,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice) (under the solutions path), but only use it when you need it :) +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/module.md) (under the solutions path), but only use it when you need it :) diff --git a/en/src/crate-module/use-pub.md b/en/src/crate-module/use-pub.md index e4572bc..eed7154 100644 --- a/en/src/crate-module/use-pub.md +++ b/en/src/crate-module/use-pub.md @@ -66,4 +66,4 @@ pub mod a { The full code of `hello-package` is [here](https://github.com/sunface/rust-by-practice/tree/master/practices/hello-package). -> You can find the solutions [here](https://github.com/sunface/rust-by-practice) (under the solutions path), but only use it when you need it :) \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/crate-module/use-pub.md) (under the solutions path), but only use it when you need it :) \ No newline at end of file diff --git a/en/src/fight-compiler/borrowing.md b/en/src/fight-compiler/borrowing.md index 3c798d2..98467d3 100644 --- a/en/src/fight-compiler/borrowing.md +++ b/en/src/fight-compiler/borrowing.md @@ -26,4 +26,5 @@ impl test { } fn main() {} -``` \ No newline at end of file +``` +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/fight-compiler/borrowing.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/formatted-output/debug-display.md b/en/src/formatted-output/debug-display.md index e6f8243..34e98f1 100644 --- a/en/src/formatted-output/debug-display.md +++ b/en/src/formatted-output/debug-display.md @@ -151,3 +151,5 @@ fn main() { } ``` + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/formatted-output/debug-display.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/formatted-output/formatting.md b/en/src/formatted-output/formatting.md index 8036939..1918916 100644 --- a/en/src/formatted-output/formatting.md +++ b/en/src/formatted-output/formatting.md @@ -180,3 +180,5 @@ fn main() { println!("Hello {{}}"); // => Hello {} } ``` + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/formatted-output/formatting.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/formatted-output/println.md b/en/src/formatted-output/println.md index f9e24b7..34d483b 100644 --- a/en/src/formatted-output/println.md +++ b/en/src/formatted-output/println.md @@ -36,3 +36,5 @@ fn main() { __("Sunface!"); } ``` + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/formatted-output/println.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/functional-programing/closure.md b/en/src/functional-programing/closure.md index 43cf78c..cc1e0ce 100644 --- a/en/src/functional-programing/closure.md +++ b/en/src/functional-programing/closure.md @@ -432,4 +432,5 @@ fn call_with_different_values() { assert_eq!(v2, 1); } -``` \ No newline at end of file +``` +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/functional-programing/closure.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/functional-programing/iterator.md b/en/src/functional-programing/iterator.md index 8b795b8..95b6b7f 100644 --- a/en/src/functional-programing/iterator.md +++ b/en/src/functional-programing/iterator.md @@ -350,3 +350,5 @@ fn main() { ); } ``` + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/functional-programing/iterator.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/generics-traits/const-generics.md b/en/src/generics-traits/const-generics.md index d3217ed..9546d42 100644 --- a/en/src/generics-traits/const-generics.md +++ b/en/src/generics-traits/const-generics.md @@ -142,4 +142,4 @@ pub trait IsTrue {} impl IsTrue for Assert {} ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it :) \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/const-generics.md)(under the solutions path), but only use it when you need it :) \ No newline at end of file diff --git a/en/src/generics-traits/generics.md b/en/src/generics-traits/generics.md index a936610..f93da44 100644 --- a/en/src/generics-traits/generics.md +++ b/en/src/generics-traits/generics.md @@ -152,5 +152,5 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/generics.md)(under the solutions path), but only use it when you need it diff --git a/en/src/generics-traits/trait-object.md b/en/src/generics-traits/trait-object.md index dea4897..3c7a565 100644 --- a/en/src/generics-traits/trait-object.md +++ b/en/src/generics-traits/trait-object.md @@ -226,4 +226,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it :) +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/trait-object.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/generics-traits/traits.md b/en/src/generics-traits/traits.md index 938d852..1e5a28d 100644 --- a/en/src/generics-traits/traits.md +++ b/en/src/generics-traits/traits.md @@ -469,4 +469,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it :) \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/generics-traits/traits.md)(under the solutions path), but only use it when you need it :) \ No newline at end of file diff --git a/en/src/lifetime/advance.md b/en/src/lifetime/advance.md index af50ab7..0fc5f57 100644 --- a/en/src/lifetime/advance.md +++ b/en/src/lifetime/advance.md @@ -282,3 +282,5 @@ fn use_list(list: &List) { println!("{}", list.manager.text); } ``` + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/lifetime/advance.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/lifetime/basic.md b/en/src/lifetime/basic.md index 70b9eb2..e8f7d35 100644 --- a/en/src/lifetime/basic.md +++ b/en/src/lifetime/basic.md @@ -355,4 +355,5 @@ enum Either<'a> { } fn main() {} -``` \ No newline at end of file +``` +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/lifetime/basic.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/lifetime/static.md b/en/src/lifetime/static.md index 254e787..b1160ff 100644 --- a/en/src/lifetime/static.md +++ b/en/src/lifetime/static.md @@ -195,3 +195,5 @@ fn print_g(t: &'static String) { println!("{}", t); } ``` + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/lifetime/static.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/ownership/borrowing.md b/en/src/ownership/borrowing.md index d0de771..8a5e7e9 100644 --- a/en/src/ownership/borrowing.md +++ b/en/src/ownership/borrowing.md @@ -183,4 +183,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/ownership/borrowing.md)(under the solutions path), but only use it when you need it \ No newline at end of file diff --git a/en/src/ownership/ownership.md b/en/src/ownership/ownership.md index 01bd390..e0054f9 100644 --- a/en/src/ownership/ownership.md +++ b/en/src/ownership/ownership.md @@ -167,4 +167,4 @@ fn main() { ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it \ No newline at end of file +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/ownership/ownership.md)(under the solutions path), but only use it when you need it \ No newline at end of file diff --git a/en/src/pattern-match/patterns.md b/en/src/pattern-match/patterns.md index 0f8cb10..2a3a52e 100644 --- a/en/src/pattern-match/patterns.md +++ b/en/src/pattern-match/patterns.md @@ -116,4 +116,4 @@ fn main() { } ``` -> You can find the solutions [here](https://github.com/sunface/rust-by-practice)(under the solutions path), but only use it when you need it +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/pattern-match/patterns.md)(under the solutions path), but only use it when you need it diff --git a/en/src/result-panic/panic.md b/en/src/result-panic/panic.md index da71ba6..be63274 100644 --- a/en/src/result-panic/panic.md +++ b/en/src/result-panic/panic.md @@ -109,3 +109,5 @@ If in your project you need to make the resulting binary as small as possible, y panic = 'abort' ``` + +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/result-panic/panic.md)(under the solutions path), but only use it when you need it :) diff --git a/en/src/result-panic/result.md b/en/src/result-panic/result.md index 37abc34..695564e 100644 --- a/en/src/result-panic/result.md +++ b/en/src/result-panic/result.md @@ -209,4 +209,5 @@ fn main() -> Result<(), ParseIntError> { println!("{}", number); Ok(()) } -``` \ No newline at end of file +``` +> You can find the solutions [here](https://github.com/sunface/rust-by-practice/blob/master/solutions/result-panic/result.md)(under the solutions path), but only use it when you need it :) diff --git a/zh-CN/src/functional-programing/closure.md b/zh-CN/src/functional-programing/closure.md index fb73740..bd51bca 100644 --- a/zh-CN/src/functional-programing/closure.md +++ b/zh-CN/src/functional-programing/closure.md @@ -48,4 +48,5 @@ fn call_with_different_values() { assert_eq!(v2, 1); } -``` \ No newline at end of file +``` +> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/functional-programing/closure.md)找到答案(在 solutions 路径下) diff --git a/zh-CN/src/functional-programing/iterator.md b/zh-CN/src/functional-programing/iterator.md index 4fb4459..c264d57 100644 --- a/zh-CN/src/functional-programing/iterator.md +++ b/zh-CN/src/functional-programing/iterator.md @@ -1,2 +1,4 @@ # Iterator + +> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/functional-programing/iterator.md)找到答案(在 solutions 路径下) diff --git a/zh-CN/src/lifetime/advance.md b/zh-CN/src/lifetime/advance.md index af2991e..5e883d4 100644 --- a/zh-CN/src/lifetime/advance.md +++ b/zh-CN/src/lifetime/advance.md @@ -283,3 +283,5 @@ fn use_list(list: &List) { println!("{}", list.manager.text); } ``` + +> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/lifetime/advance.md)找到答案(在 solutions 路径下) diff --git a/zh-CN/src/lifetime/basic.md b/zh-CN/src/lifetime/basic.md index 55fa041..193f448 100644 --- a/zh-CN/src/lifetime/basic.md +++ b/zh-CN/src/lifetime/basic.md @@ -335,3 +335,5 @@ enum Either<'a> { fn main() {} ``` + +> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/lifetime/basic.md)找到答案(在 solutions 路径下) diff --git a/zh-CN/src/lifetime/static.md b/zh-CN/src/lifetime/static.md index 6642b90..cf90c5b 100644 --- a/zh-CN/src/lifetime/static.md +++ b/zh-CN/src/lifetime/static.md @@ -185,3 +185,5 @@ fn print_g(t: &'static String) { println!("{}", t); } ``` + +> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/lifetime/static.md)找到答案(在 solutions 路径下) diff --git a/zh-CN/src/result-panic/panic.md b/zh-CN/src/result-panic/panic.md index 760faef..ffbe1df 100644 --- a/zh-CN/src/result-panic/panic.md +++ b/zh-CN/src/result-panic/panic.md @@ -109,3 +109,5 @@ note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose bac panic = 'abort' ``` + +> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/result-panic/panic.md)找到答案(在 solutions 路径下) diff --git a/zh-CN/src/result-panic/result.md b/zh-CN/src/result-panic/result.md index 05d2f21..ffb1968 100644 --- a/zh-CN/src/result-panic/result.md +++ b/zh-CN/src/result-panic/result.md @@ -207,4 +207,5 @@ fn main() -> Result<(), ParseIntError> { println!("{}", number); Ok(()) } -``` \ No newline at end of file +``` +> 你可以在[这里](https://github.com/sunface/rust-by-practice/blob/master/solutions/result-panic/result.md)找到答案(在 solutions 路径下)