From 1510892246080b025467bf857eedbdd33436b600 Mon Sep 17 00:00:00 2001 From: Alfex4936 <ikr@kakao.com> Date: Wed, 29 Mar 2023 23:38:25 +0900 Subject: [PATCH] Update chapter 1 --- docs/01_ko.html | 13 +--------- docs/02_ko.html | 13 +--------- docs/03_ko.html | 13 +--------- docs/04_ko.html | 13 +--------- docs/05_ko.html | 13 +--------- docs/07_ko.html | 13 +--------- docs/08_ko.html | 13 +--------- docs/09_ko.html | 13 +--------- docs/10_ko.html | 38 ++++++++++++------------------ docs/11_ko.html | 13 +--------- docs/12_ko.html | 13 +--------- docs/13_ko.html | 13 +--------- docs/14_ko.html | 13 +--------- docs/15_ko.html | 13 +--------- docs/16_ko.html | 13 +--------- docs/17_ko.html | 13 +--------- docs/18_ko.html | 13 +--------- docs/19_ko.html | 13 +--------- docs/20_ko.html | 13 +--------- docs/21_ko.html | 13 +--------- docs/23_ko.html | 13 +--------- docs/24_ko.html | 13 +--------- docs/25_ko.html | 13 +--------- docs/26_ko.html | 13 +--------- docs/27_ko.html | 13 +--------- docs/28_ko.html | 13 +--------- docs/30_ko.html | 13 +--------- docs/32_ko.html | 13 +--------- docs/33_ko.html | 13 +--------- docs/35_ko.html | 13 +--------- docs/37_ko.html | 13 +--------- docs/TOC_ko.html | 2 +- docs/chapter_1_ko.html | 13 +--------- docs/chapter_2_ko.html | 13 +--------- docs/chapter_3_ko.html | 13 +--------- docs/chapter_4_ko.html | 13 +--------- docs/chapter_5_ko.html | 13 +--------- docs/chapter_6_ko.html | 13 +--------- docs/index.html | 13 +--------- docs/tour.css | 2 +- frontend/.eslintrc.js | 2 +- frontend/generate.js | 13 +--------- frontend/lessons/ko/chapter_1.yaml | 31 +++++++++++++++--------- 43 files changed, 76 insertions(+), 493 deletions(-) diff --git a/docs/01_ko.html b/docs/01_ko.html index 82b45b2..7855dd8 100644 --- a/docs/01_ko.html +++ b/docs/01_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -70,17 +70,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=fn+main%28%29+%7B%0A++++%2F%2F+%EC%83%81%ED%99%A9%3A+%EC%86%8C%EC%9C%A0%EA%B6%8C+%EC%9D%B4%EC%A0%84%ED%95%98%EA%B8%B0%0A++++let+mut+x+%3D+String%3A%3Afrom%28%22hello%22%29%3B%0A++++let+y+%3D+x%3B+%2F%2F+x%EC%9D%98+%EC%86%8C%EC%9C%A0%EA%B6%8C%EC%9D%B4+y%EB%A1%9C+%EC%9D%B4%EC%A0%84%EB%90%A8%0A++++println%21%28%22%7B%7D%22%2C+y%29%3B+%2F%2F+%EA%B2%B0%EA%B3%BC%3A+hello%0A+++++++++++++++++++++++%2F%2F+println%21%28%22%7B%7D%22%2C+x%29%3B+%2F%2F+%EC%98%A4%EB%A5%98%3A+%60x%60%EC%9D%98+%EC%86%8C%EC%9C%A0%EA%B6%8C%EC%9D%B4+y%EB%A1%9C+%EC%9D%B4%EC%A0%84%EB%90%98%EC%96%B4+%EB%8D%94+%EC%9D%B4%EC%83%81+%EC%82%AC%EC%9A%A9%ED%95%A0+%EC%88%98+%EC%97%86%EC%9D%8C%0A%0A++++%2F%2F+%EC%83%81%ED%99%A9%3A+%EB%8C%80%EC%97%AC%ED%95%98%EA%B8%B0%0A++++let+v+%3D+vec%21%5B1%2C+2%2C+3%5D%3B%0A++++let+s+%3D+sum%28%26v%29%3B+%2F%2F+v%EB%A5%BC+%EB%B6%88%EB%B3%80%EC%9C%BC%EB%A1%9C+%EB%8C%80%EC%97%AC%ED%95%98%EA%B3%A0+%ED%95%A9%EA%B3%84%EB%A5%BC+%EA%B5%AC%ED%95%9C%EB%8B%A4.%0A++++println%21%28%22%7B%7D%22%2C+s%29%3B+%2F%2F+%EA%B2%B0%EA%B3%BC%3A+6%0A%0A++++let+k+%3D+v%3B%0A++++%2F%2F+println%21%28%22%7B%3A%23%3F%7D%22%2C+v%29%3B+%2F%2F+error%5BE0382%5D%3A+borrow+of+moved+value%3A+%60v%60%0A%7D%0A%0Afn+sum%28v%3A+%26Vec%3Ci32%3E%29+-%3E+i32+%7B%0A++++let+mut+result+%3D+0%3B%0A++++for+i+in+v+%7B%0A++++++++result+%2B%3D+*i%3B%0A++++%7D%0A++++result%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/02_ko.html b/docs/02_ko.html index e4a92b4..8a6f1fc 100644 --- a/docs/02_ko.html +++ b/docs/02_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -68,17 +68,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%23!%5Ballow(dead_code)%5D%0A%0A%2F%2F%20%EC%84%9C%EB%A1%9C%20%EB%8B%A4%EB%A5%B8%20%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84%EC%9D%84%20%EA%B0%80%EC%A7%84%20%EB%91%90%20%EA%B0%9C%EC%9D%98%20%EC%B0%B8%EC%A1%B0%EB%A5%BC%20%ED%8F%AC%ED%95%A8%ED%95%98%EB%8A%94%20%EA%B5%AC%EC%A1%B0%EC%B2%B4%0Astruct%20Foo%3C'a%2C%20'b%3E%20%7B%0A%20%20%20%20x%3A%20%26'a%20i32%2C%0A%20%20%20%20y%3A%20%26'b%20i32%2C%0A%7D%0A%0A%2F%2F%20Foo%20%EA%B5%AC%EC%A1%B0%EC%B2%B4%EB%A5%BC%20%EA%B0%80%EC%A0%B8%EC%99%80%EC%84%9C%20x%EC%99%80%20%EB%8F%99%EC%9D%BC%ED%95%9C%20%EB%9D%BC%EC%9D%B4%ED%94%84%20%ED%83%80%EC%9E%84%EC%9D%84%20%EA%B0%80%EC%A7%84%20%EC%B0%B8%EC%A1%B0%EB%A5%BC%20%EB%B0%98%ED%99%98%ED%95%98%EB%8A%94%20%ED%95%A8%EC%88%98%0Afn%20get_x%3C'a%2C%20'b%3E(foo%3A%20%26Foo%3C'a%2C%20'b%3E)%20-%3E%20%26'a%20i32%20%7B%0A%20%20%20%20foo.x%0A%7D%0A%0A%2F%2F%20%EC%9B%90%EC%8B%9C%20%ED%8F%AC%EC%9D%B8%ED%84%B0%EB%A5%BC%20%EA%B0%80%EC%A0%B8%EC%99%80%20%EC%9E%84%EC%9D%98%EC%9D%98%20%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84%EC%9D%84%20%EA%B0%80%EC%A7%84%20%EC%B0%B8%EC%A1%B0%EB%A5%BC%20%EB%B0%98%ED%99%98%ED%95%98%EB%8A%94%20unsafe%20%ED%95%A8%EC%88%98%0Aunsafe%20fn%20deref_raw%3C'a%3E(ptr%3A%20*const%20i32)%20-%3E%20%26'a%20i32%20%7B%0A%20%20%20%20%26*ptr%20%2F%2F%20dereference%20raw%20pointer%0A%7D%0A%0Afn%20main()%20%7B%0A%20%20%20%20let%20x%20%3D%2010%3B%0A%20%20%20%20let%20y%20%3D%2020%3B%0A%0A%20%20%20%20%2F%2F%20x%EC%99%80%20y%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%B0%B8%EC%A1%B0%EB%A5%BC%20%ED%8F%AC%ED%95%A8%ED%95%98%EB%8A%94%20Foo%20%EA%B5%AC%EC%A1%B0%EC%B2%B4%20%EB%A7%8C%EB%93%A4%EA%B8%B0%0A%20%20%20%20let%20foo%20%3D%20Foo%20%7B%20x%3A%20%26x%2C%20y%3A%20%26y%20%7D%3B%0A%0A%20%20%20%20%2F%2F%20get_x%20%ED%98%B8%EC%B6%9C%ED%95%98%EB%A9%B4%EC%84%9C%20foo.x%EC%99%80%20%EB%8F%99%EC%9D%BC%ED%95%9C%20%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84%EC%9D%84%20%EA%B0%80%EC%A7%84%20x%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%B0%B8%EC%A1%B0%20%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0%0A%20%20%20%20let%20r1%20%3D%20get_x(%26foo)%3B%0A%0A%20%20%20%20%2F%2F%20r1%EC%97%90%EC%84%9C%20%EC%9B%90%EC%8B%9C(raw)%20%ED%8F%AC%EC%9D%B8%ED%84%B0%20%EB%A7%8C%EB%93%A4%EA%B8%B0%0A%20%20%20%20let%20ptr%20%3D%20r1%20as%20*const%20i32%3B%0A%0A%20%20%20%20%2F%2F%20deref_raw%20%ED%98%B8%EC%B6%9C%ED%95%B4%EC%84%9C%20%EC%9E%84%EC%9D%98%EC%9D%98%20%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84%20'a%EB%A5%BC%20%EA%B0%80%EC%A7%84%20r1%EC%97%90%20%EB%8C%80%ED%95%9C%20%EC%B0%B8%EC%A1%B0%20%EA%B0%80%EC%A0%B8%EC%98%A4%EA%B8%B0%0A%20%20%20%20let%20r2%20%3D%20unsafe%20%7B%20deref_raw(ptr)%20%7D%3B%0A%0A%20%20%20%20%2F%2F%20r1%EA%B3%BC%20r2%EC%9D%98%20%EA%B0%92%EC%9D%84%20%EC%B6%9C%EB%A0%A5%ED%95%98%EA%B8%B0%0A%20%20%20%20println!(%22r1%20%3D%20%7B%7D%2C%20r2%20%3D%20%7B%7D%22%2C%20r1%2C%20r2)%3B%20%20%2F%2F%20r1%20%3D%2010%2C%20r2%20%3D%2010%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/03_ko.html b/docs/03_ko.html index c186122..39c9dd9 100644 --- a/docs/03_ko.html +++ b/docs/03_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -65,17 +65,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%2F%2F+%EC%99%B8%EB%B6%80+%EB%9D%BC%EC%9D%B4%EB%B8%8C%EB%9F%AC%EB%A6%AC%EB%A5%BC+%EA%B0%80%EC%A0%B8%EC%98%B5%EB%8B%88%EB%8B%A4.%0D%0Aextern+crate+image%3B%0D%0A%0D%0A%2F%2F+%ED%95%84%EC%9A%94%ED%95%9C+%EB%AA%A8%EB%93%88%EC%9D%84+%EA%B0%80%EC%A0%B8%EC%98%B5%EB%8B%88%EB%8B%A4.%0D%0Ause+image%3A%3A%7BGenericImageView%2C+ImageFormat%2C+ImageOutputFormat%7D%3B%0D%0A%0D%0Afn+main%28%29+%7B%0D%0A++++%2F%2F+%EC%9D%B4%EB%AF%B8%EC%A7%80+%ED%8C%8C%EC%9D%BC%EC%9D%84+%EC%97%BD%EB%8B%88%EB%8B%A4.%0D%0A++++let+img+%3D+image%3A%3Aopen%28%22input.jpg%22%29.unwrap%28%29%3B%0D%0A%0D%0A++++%2F%2F+%EC%9D%B4%EB%AF%B8%EC%A7%80%EC%9D%98+%ED%81%AC%EA%B8%B0%EB%A5%BC+%EB%B3%80%EA%B2%BD%ED%95%A9%EB%8B%88%EB%8B%A4.%0D%0A++++let+resized_img+%3D+img.resize%28100%2C+100%2C+image%3A%3Aimageops%3A%3AFilterType%3A%3ANearest%29%3B%0D%0A%0D%0A++++%2F%2F+%EC%83%88+%EC%9D%B4%EB%AF%B8%EC%A7%80+%ED%8C%8C%EC%9D%BC%EC%9D%84+%EC%A0%80%EC%9E%A5%ED%95%A9%EB%8B%88%EB%8B%A4.%0D%0A++++let+mut+output+%3D+std%3A%3Afs%3A%3AFile%3A%3Acreate%28%22output.jpg%22%29.unwrap%28%29%3B%0D%0A++++resized_img%0D%0A++++++++.write_to%28%26mut+output%2C+ImageOutputFormat%3A%3AJpeg%2875%29%29%0D%0A++++++++.unwrap%28%29%3B%0D%0A%0D%0A++++println%21%28%22%EC%9D%B4%EB%AF%B8%EC%A7%80+%ED%81%AC%EA%B8%B0+%EB%B3%80%EA%B2%BD%EC%9D%B4+%EC%99%84%EB%A3%8C%EB%90%98%EC%97%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%22%29%3B%0D%0A%7D%0D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/04_ko.html b/docs/04_ko.html index 097556b..6f3e9e4 100644 --- a/docs/04_ko.html +++ b/docs/04_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -61,17 +61,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=curl%20--proto%20'%3Dhttps'%20--tlsv1.2%20-sSf%20https%3A%2F%2Fsh.rustup.rs%20%7C%20sh" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/05_ko.html b/docs/05_ko.html index 28e9d3c..e3545a6 100644 --- a/docs/05_ko.html +++ b/docs/05_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -56,17 +56,6 @@ $ Hello, world! (stdout) </div> <div class="code"><center><img src="/ferris_lofi.png" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/07_ko.html b/docs/07_ko.html index 8a4d92f..65fae5f 100644 --- a/docs/07_ko.html +++ b/docs/07_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -63,17 +63,6 @@ fn main() { <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20main()%20%7B%0A%20%20%20%20println!(%22Welcome%20to%20the%20playground!%20You%20can%20modify%20the%20code%20in%20here.%22)%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/08_ko.html b/docs/08_ko.html index 77f0673..90168ed 100644 --- a/docs/08_ko.html +++ b/docs/08_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -54,17 +54,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=fn%20main()%20%7B%0A%20%20%20%20%2F%2F%20let%20%ED%82%A4%EC%9B%8C%EB%93%9C%EB%A5%BC%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%EB%B3%80%EC%88%98%EB%A5%BC%20%EC%84%A0%EC%96%B8%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%20%20%20%20let%20x%20%3D%205%3B%20%2F%2F%20x%EC%97%90%205%EB%9D%BC%EB%8A%94%20%EA%B0%92%EC%9D%84%20%ED%95%A0%EB%8B%B9%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%20%20%20%20let%20y%3A%20f32%20%3D%203.14%3B%20%2F%2F%20y%EC%97%90%203.14%EB%9D%BC%EB%8A%94%20%EA%B0%92%EC%9D%84%20%ED%95%A0%EB%8B%B9%ED%95%98%EB%A9%B0%2C%20f32%20%ED%83%80%EC%9E%85%EC%9D%84%20%EB%AA%85%EC%8B%9C%EC%A0%81%EC%9C%BC%EB%A1%9C%20%EC%A7%80%EC%A0%95%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%0A%20%20%20%20%2F%2F%20Rust%EB%8A%94%20%EB%8C%80%EB%B6%80%EB%B6%84%EC%9D%98%20%EA%B2%BD%EC%9A%B0%20%EB%B3%80%EC%88%98%EC%9D%98%20%ED%83%80%EC%9E%85%EC%9D%84%20%EC%B6%94%EB%A1%A0%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%0A%20%20%20%20%2F%2F%20%EB%A7%8C%EC%95%BD%20%ED%83%80%EC%9E%85%EC%9D%84%20%EB%AA%85%EC%8B%9C%EC%A0%81%EC%9C%BC%EB%A1%9C%20%EC%A7%80%EC%A0%95%ED%95%98%EA%B3%A0%20%EC%8B%B6%EB%8B%A4%EB%A9%B4%20%EB%8B%A4%EC%9D%8C%EA%B3%BC%20%EA%B0%99%EC%9D%B4%20%EC%9E%91%EC%84%B1%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%20%20%20%20let%20z%3A%20i64%20%3D%20100%3B%0A%0A%20%20%20%20%2F%2F%20%EB%B3%80%EC%88%98%EC%9D%98%20%EC%9D%B4%EB%A6%84%EC%9D%84%20%EC%97%AC%EB%9F%AC%20%EB%B2%88%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%EA%B0%92%EC%9D%84%20%ED%95%A0%EB%8B%B9%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%0A%20%20%20%20let%20mut%20count%20%3D%200%3B%0A%20%20%20%20count%20%3D%201%3B%0A%20%20%20%20count%20%3D%202%3B%0A%0A%20%20%20%20%2F%2F%20%EB%B3%80%EC%88%98%EC%9D%98%20%ED%83%80%EC%9E%85%EC%9D%84%20%EB%B3%80%EA%B2%BD%ED%95%98%EC%97%AC%20%EC%9E%AC%EC%82%AC%EC%9A%A9%ED%95%A0%20%EC%88%98%20%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%0A%20%20%20%20let%20x%20%3D%20%22hello%22%3B%20%2F%2F%20x%EB%8A%94%20%EB%AC%B8%EC%9E%90%EC%97%B4%20%ED%83%80%EC%9E%85%EC%9E%85%EB%8B%88%EB%8B%A4.%0A%20%20%20%20let%20x%20%3D%205%3B%20%2F%2F%20x%EB%8A%94%20%EC%A0%95%EC%88%98%20%ED%83%80%EC%9E%85%EC%9C%BC%EB%A1%9C%20%EB%B3%80%EA%B2%BD%EB%90%A9%EB%8B%88%EB%8B%A4.%0A%0A%20%20%20%20%2F%2F%20%EB%B3%80%EC%88%98%EC%9D%98%20%EC%9D%B4%EB%A6%84%EC%9D%80%20snake_case%EB%A1%9C%20%EC%9E%91%EC%84%B1%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%20%20%20%20let%20first_name%20%3D%20%22Choi%22%3B%0A%20%20%20%20let%20last_name%20%3D%20%22Blah%22%3B%0A%0A%20%20%20%20%2F%2F%20%EB%B3%80%EC%88%98%EC%9D%98%20%EA%B0%92%EC%9D%84%20%EC%B6%9C%EB%A0%A5%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%20%20%20%20println!(%22x%20is%20%7B%7D%22%2C%20x)%3B%20%2F%2F%20%22x%20is%205%22%EA%B0%80%20%EC%B6%9C%EB%A0%A5%EB%90%A9%EB%8B%88%EB%8B%A4.%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/09_ko.html b/docs/09_ko.html index ce28a93..eb0c746 100644 --- a/docs/09_ko.html +++ b/docs/09_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -51,17 +51,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=fn+main%28%29+%7B%0A++++let+mut+x+%3D+42%3B%0A++++println%21%28%22%7B%7D%22%2C+x%29%3B%0A++++x+%3D+13%3B%0A++++println%21%28%22%7B%7D%22%2C+x%29%3B%0A%0A++++let+y+%3D+23%3B%0A++++println%21%28%22%7B%7D%22%2C+y%29%3B%0A++++%2F%2F+y+%3D+9%3B++%2F%2F+%EC%97%90%EB%9F%AC%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/10_ko.html b/docs/10_ko.html index eb4977e..dd65a66 100644 --- a/docs/10_ko.html +++ b/docs/10_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -37,21 +37,24 @@ <div class="page"> <h1>기본 타입</h1> <p>Rust는 다양한 익숙한 유형을 제공합니다:</p> +<div align="center"> <p> + <img src="https://user-images.githubusercontent.com/2356749/228573875-e7980e94-248c-4477-b522-79f9532bf0f1.png"> +</p> </div> <ul> -<li>booleans - <code>bool</code>로 참/거짓을 나타냅니다.</li> -<li>unsigned integers (부호 없는 정수) - 음이 아닌 정수를 나타내는 <code>u8</code>, <code>u16</code>, <code>u32</code>, <code>u64</code>, <code>u128</code>입니다.</li> -<li>signed integers (부호 있는 정수) - 정수를 나타내는 <code>i8</code>, <code>i16</code>, <code>i32</code>, <code>i64</code>, <code>i128</code>입니다.</li> -<li>pointer sized integers - 메모리에서 색인과 항목의 크기를 나타내는 <code>usize</code>, <code>isize</code>입니다.</li> +<li>booleans - <code>bool</code>로 참/거짓</li> +<li>unsigned integers (부호 없는 정수) - 음이 아닌 정수를 나타내는 <code>u8</code>, <code>u16</code>, <code>u32</code>, <code>u64</code>, <code>u128</code></li> +<li>signed integers (부호 있는 정수) - 정수를 나타내는 <code>i8</code>, <code>i16</code>, <code>i32</code>, <code>i64</code>, <code>i128</code></li> +<li>pointer sized integers - 메모리에서 색인과 항목의 크기를 나타내는 <code>usize</code>, <code>isize</code></li> <li>floating point - <code>f32</code> <code>f64</code></li> -<li>tuple - 고정된 값의 시퀀스를 스택에 전달하는 <code>(value, value, ...)</code> 입니다.</li> -<li>arrays - 컴파일 시점에서 크기가 고정되어 있는 비슷한 요소의 집합으로 <code>[value, value, ...]</code> 입니다.</li> -<li>slices - 런타임에 길이가 알려진 비슷한 요소의 집합입니다.</li> -<li><code>str</code>(문자열 슬라이스) - 런타임에 길이가 알려진 텍스트입니다.</li> +<li>tuple - 고정된 값의 시퀀스를 스택에 전달하는 <code>(value, value, ...)</code></li> +<li>arrays - 컴파일 시점에서 크기가 고정되어 있는 비슷한 요소의 집합으로 <code>[value, value, ...]</code></li> +<li>slices - 런타임에 길이가 알려진 비슷한 요소의 집합</li> +<li><code>str</code>(문자열 슬라이스) - 런타임에 길이가 알려진 텍스트</li> </ul> -<p>다른 언어에서 사용하는 것보다 텍스트는 더 복잡할 수 있습니다.<br /> -Rust가 시스템 프로그래밍 언어이기 때문에, 기존에 익숙하지 않은 메모리 문제에 대해서도 신경쓰고 있습니다.<br /> -이에 대해서는 나중에 자세히 다룰 예정입니다.</p> <p>숫자형은 숫자 끝에 유형을 명시하여 명시적으로 지정할 수 있습니다(예: <code>13u32</code>, <code>2u8</code>).</p> +<p>다른 언어에서 사용하는 것보다 텍스트는 더 복잡할 수 있습니다.</p> +<p>Rust가 시스템 프로그래밍 언어이기 때문에, 기존에 익숙하지 않은 메모리 문제에 대해서도 신경쓰고 있습니다.</p> +<p>이에 대해서는 다음 페이지를 참고해주세요!</p> <div class="bottomnav"> <span class="back"><a href="09_ko.html" rel="prev">❮ 이전</a></span> <span class="next"><a href="11_ko.html" rel="next">다음 ❯</a></span> @@ -61,17 +64,6 @@ Rust가 시스템 프로그래밍 언어이기 때문에, 기존에 익숙하지 <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20main()%20%7B%0A%20%20%20%20let%20x%20%3D%2012%3B%20%2F%2F%20by%20default%20this%20is%20i32%0A%20%20%20%20let%20a%20%3D%2012u8%3B%0A%20%20%20%20let%20b%20%3D%204.3%3B%20%2F%2F%20by%20default%20this%20is%20f64%0A%20%20%20%20let%20c%20%3D%204.3f32%3B%0A%20%20%20%20let%20bv%20%3D%20true%3B%0A%20%20%20%20let%20t%20%3D%20(13%2C%20false)%3B%0A%20%20%20%20let%20sentence%20%3D%20%22hello%20world!%22%3B%0A%20%20%20%20println!(%0A%20%20%20%20%20%20%20%20%22%7B%7D%20%7B%7D%20%7B%7D%20%7B%7D%20%7B%7D%20%7B%7D%20%7B%7D%20%7B%7D%22%2C%0A%20%20%20%20%20%20%20%20x%2C%20a%2C%20b%2C%20c%2C%20bv%2C%20t.0%2C%20t.1%2C%20sentence%0A%20%20%20%20)%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/11_ko.html b/docs/11_ko.html index 17e4eb9..4a17fd1 100644 --- a/docs/11_ko.html +++ b/docs/11_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -87,17 +87,6 @@ let my_number_string = my_number.to_string(); // "42"라는 String 타입으로 <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=fn+main%28%29+%7B%0A++++let+my_literal%3A+%26%27static+str+%3D+%22%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%21%22%3B%0A%0A++++let+full_name+%3D+%22%ED%99%8D%EA%B8%B8%EB%8F%99%22%3B%0A++++let+first_name%3A+%26str+%3D+%26full_name%5B..6%5D%3B+%2F%2F+%22%ED%99%8D%EA%B8%B8%22%EB%A7%8C+%EC%B0%B8%EC%A1%B0%2C+3+per+each+korean+char.%0A++++println%21%28%22%7B%7D%22%2C+first_name%29%3B%0A%0A++++let+mut+my_string+%3D+String%3A%3Afrom%28%22%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%21%22%29%3B%0A++++my_string.push_str%28%22+%EB%A7%8C%EB%82%98%EC%84%9C+%EB%B0%98%EA%B0%80%EC%9B%8C%EC%9A%94%21%22%29%3B%0A++++println%21%28%22%7B%7D%22%2C+my_string%29%3B%0A%0A++++let+my_str+%3D+%22%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%21%22%3B%0A++++let+my_string+%3D+my_str.to_owned%28%29%3B+%2F%2F+String+%ED%83%80%EC%9E%85%EC%9C%BC%EB%A1%9C+%EB%B3%80%EA%B2%BD%0A++++println%21%28%22%7B%3A%23%3F%7D%22%2C+my_string%29%3B%0A%0A++++let+my_number+%3D+42%3B%0A++++let+my_number_string+%3D+my_number.to_string%28%29%3B+%2F%2F+%2242%22%EB%9D%BC%EB%8A%94+String+%ED%83%80%EC%9E%85%EC%9C%BC%EB%A1%9C+%EB%B3%80%EA%B2%BD%0A++++println%21%28%22%7B%7D%22%2C+my_number_string%29%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/12_ko.html b/docs/12_ko.html index 07ad11f..a3e4e11 100644 --- a/docs/12_ko.html +++ b/docs/12_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -47,17 +47,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20main()%20%7B%0A%20%20%20%20let%20a%20%3D%2013u8%3B%0A%20%20%20%20let%20b%20%3D%207u32%3B%0A%20%20%20%20let%20c%20%3D%20a%20as%20u32%20%2B%20b%3B%0A%20%20%20%20println!(%22%7B%7D%22%2C%20c)%3B%0A%0A%20%20%20%20let%20t%20%3D%20true%3B%0A%20%20%20%20println!(%22%7B%7D%22%2C%20t%20as%20u8)%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/13_ko.html b/docs/13_ko.html index 4884c7c..426c5a7 100644 --- a/docs/13_ko.html +++ b/docs/13_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -49,17 +49,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=const%20PI%3A%20f32%20%3D%203.14159%3B%0A%0Afn%20main()%20%7B%0A%20%20%20%20println!(%0A%20%20%20%20%20%20%20%20%22To%20make%20an%20apple%20%7B%7D%20from%20scratch%2C%20you%20must%20first%20create%20a%20universe.%22%2C%0A%20%20%20%20%20%20%20%20PI%0A%20%20%20%20)%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/14_ko.html b/docs/14_ko.html index 91f6523..b947b2a 100644 --- a/docs/14_ko.html +++ b/docs/14_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -51,17 +51,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20main()%20%7B%0A%20%20%20%20let%20nums%3A%20%5Bi32%3B%203%5D%20%3D%20%5B1%2C%202%2C%203%5D%3B%0A%20%20%20%20println!(%22%7B%3A%3F%7D%22%2C%20nums)%3B%0A%20%20%20%20println!(%22%7B%7D%22%2C%20nums%5B1%5D)%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/15_ko.html b/docs/15_ko.html index 4656dc5..8dac31b 100644 --- a/docs/15_ko.html +++ b/docs/15_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -65,17 +65,6 @@ if __name__ == "__main__": <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20add(x%3A%20i32%2C%20y%3A%20i32)%20-%3E%20i32%20%7B%0A%20%20%20%20return%20x%20%2B%20y%3B%0A%7D%0A%0Afn%20subtract(x%3A%20i32%2C%20y%3A%20i32)%20-%3E%20i32%20%7B%0A%20%20%20%20x%20-%20y%0A%7D%0A%0Afn%20main()%20%7B%0A%20%20%20%20println!(%2242%20%2B%2013%20%3D%20%7B%7D%22%2C%20add(42%2C%2013))%3B%0A%20%20%20%20println!(%2242%20-%2013%20%3D%20%7B%7D%22%2C%20subtract(42%2C%2013))%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/16_ko.html b/docs/16_ko.html index 8dc1664..55aa11b 100644 --- a/docs/16_ko.html +++ b/docs/16_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -49,17 +49,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20swap(x%3A%20i32%2C%20y%3A%20i32)%20-%3E%20(i32%2C%20i32)%20%7B%0A%20%20%20%20return%20(y%2C%20x)%3B%0A%7D%0A%0Afn%20main()%20%7B%0A%20%20%20%20%2F%2F%20return%20a%20tuple%20of%20return%20values%0A%20%20%20%20let%20result%20%3D%20swap(123%2C%20321)%3B%0A%20%20%20%20println!(%22%7B%7D%20%7B%7D%22%2C%20result.0%2C%20result.1)%3B%0A%0A%20%20%20%20%2F%2F%20destructure%20the%20tuple%20into%20two%20variables%20names%0A%20%20%20%20let%20(a%2C%20b)%20%3D%20swap(result.0%2C%20result.1)%3B%0A%20%20%20%20println!(%22%7B%7D%20%7B%7D%22%2C%20a%2C%20b)%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/17_ko.html b/docs/17_ko.html index 8e07e42..3585080 100644 --- a/docs/17_ko.html +++ b/docs/17_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -74,17 +74,6 @@ fn main() { <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%2F%2F+%EC%97%B4%EA%B1%B0%ED%98%95+%EC%A0%95%EC%9D%98%3A+%EC%97%AC%EB%9F%AC+%EB%8F%84%ED%98%95%EC%9D%84+%EB%82%98%ED%83%80%EB%83%85%EB%8B%88%EB%8B%A4.%0Aenum+Shape+%7B%0A++++Circle+%7B+radius%3A+f64+%7D%2C%0A++++Square+%7B+side%3A+f64+%7D%2C%0A++++Rectangle+%7B+width%3A+f64%2C+height%3A+f64+%7D%2C%0A%7D%0A%0A%2F%2F+%EB%8F%84%ED%98%95%EC%9D%98+%EB%84%93%EC%9D%B4%EB%A5%BC+%EA%B3%84%EC%82%B0%ED%95%98%EB%8A%94+%ED%95%A8%EC%88%98%0Afn+calculate_area%28shape%3A+Shape%29+-%3E+f64+%7B%0A++++%2F%2F+%ED%8C%A8%ED%84%B4+%EB%A7%A4%EC%B9%AD%EC%9D%84+%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC+%EB%8F%84%ED%98%95%EC%9D%98+%EC%A2%85%EB%A5%98%EC%97%90+%EB%94%B0%EB%9D%BC+%EA%B3%84%EC%82%B0+%EB%B0%A9%EC%8B%9D%EC%9D%84+%EC%84%A0%ED%83%9D%ED%95%A9%EB%8B%88%EB%8B%A4.%0A++++match+shape+%7B%0A++++++++Shape%3A%3ACircle+%7B+radius+%7D+%3D%3E+std%3A%3Af64%3A%3Aconsts%3A%3API+*+radius+*+radius%2C+%2F%2F+%EC%9B%90%EC%9D%98+%EB%84%93%EC%9D%B4+%EA%B3%84%EC%82%B0%0A++++++++Shape%3A%3ASquare+%7B+side+%7D+%3D%3E+side+*+side%2C++++++++++++++++++++++++++++++%2F%2F+%EC%A0%95%EC%82%AC%EA%B0%81%ED%98%95%EC%9D%98+%EB%84%93%EC%9D%B4+%EA%B3%84%EC%82%B0%0A++++++++Shape%3A%3ARectangle+%7B+width%2C+height+%7D+%3D%3E+width+*+height%2C+++++++++++++++%2F%2F+%EC%A7%81%EC%82%AC%EA%B0%81%ED%98%95%EC%9D%98+%EB%84%93%EC%9D%B4+%EA%B3%84%EC%82%B0%0A++++%7D%0A%7D%0A%0Afn+main%28%29+%7B%0A++++%2F%2F+%EC%97%AC%EB%9F%AC+%EB%8F%84%ED%98%95+%EC%83%9D%EC%84%B1%0A++++let+circle+%3D+Shape%3A%3ACircle+%7B+radius%3A+5.0+%7D%3B%0A++++let+square+%3D+Shape%3A%3ASquare+%7B+side%3A+4.0+%7D%3B%0A++++let+rectangle+%3D+Shape%3A%3ARectangle+%7B%0A++++++++width%3A+6.0%2C%0A++++++++height%3A+3.0%2C%0A++++%7D%3B%0A%0A++++%2F%2F+%ED%8C%A8%ED%84%B4+%EB%A7%A4%EC%B9%AD%EC%9D%84+%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC+%EA%B0%81+%EB%8F%84%ED%98%95%EC%9D%98+%EB%84%93%EC%9D%B4%EB%A5%BC+%EA%B3%84%EC%82%B0%ED%95%98%EA%B3%A0+%EC%B6%9C%EB%A0%A5%ED%95%A9%EB%8B%88%EB%8B%A4.%0A++++let+circle_area+%3D+calculate_area%28circle%29%3B%0A++++let+square_area+%3D+calculate_area%28square%29%3B%0A++++let+rectangle_area+%3D+calculate_area%28rectangle%29%3B%0A%0A++++println%21%28%22%EC%9B%90%EC%9D%98+%EB%84%93%EC%9D%B4%3A+%7B%7D%22%2C+circle_area%29%3B%0A++++println%21%28%22%EC%A0%95%EC%82%AC%EA%B0%81%ED%98%95%EC%9D%98+%EB%84%93%EC%9D%B4%3A+%7B%7D%22%2C+square_area%29%3B%0A++++println%21%28%22%EC%A7%81%EC%82%AC%EA%B0%81%ED%98%95%EC%9D%98+%EB%84%93%EC%9D%B4%3A+%7B%7D%22%2C+rectangle_area%29%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/18_ko.html b/docs/18_ko.html index ae45baf..8a0b88a 100644 --- a/docs/18_ko.html +++ b/docs/18_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -153,17 +153,6 @@ fn main() { <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%2F%2F+%ED%8A%B9%EC%84%B1+%28Trait%29+%EC%A0%95%EC%9D%98%0D%0Atrait+Greet+%7B%0D%0A++++fn+greet%28%26self%29+-%3E+String%3B%0D%0A%7D%0D%0A%0D%0A%2F%2F+%EA%B5%AC%EC%A1%B0%EC%B2%B4+%28Struct%29+%EC%A0%95%EC%9D%98%0D%0Astruct+Person+%7B%0D%0A++++name%3A+String%2C%0D%0A%7D%0D%0A%0D%0A%2F%2F+%EA%B5%AC%EC%A1%B0%EC%B2%B4%EC%97%90+%EB%8C%80%ED%95%9C+%ED%8A%B9%EC%84%B1+%EA%B5%AC%ED%98%84%0D%0Aimpl+Greet+for+Person+%7B%0D%0A++++fn+greet%28%26self%29+-%3E+String+%7B%0D%0A++++++++format%21%28%22%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%2C+%7B%7D%EB%8B%98%21%22%2C+self.name%29%0D%0A++++%7D%0D%0A%7D%0D%0A%0D%0A%2F%2F+%EC%97%B4%EA%B1%B0%ED%98%95+%28Enum%29+%EC%A0%95%EC%9D%98%0D%0Aenum+Animal+%7B%0D%0A++++Dog%2C%0D%0A++++Cat%2C%0D%0A%7D%0D%0A%0D%0A%2F%2F+%EC%97%B4%EA%B1%B0%ED%98%95%EC%97%90+%EB%8C%80%ED%95%9C+%ED%8A%B9%EC%84%B1+%EA%B5%AC%ED%98%84%0D%0Aimpl+Greet+for+Animal+%7B%0D%0A++++fn+greet%28%26self%29+-%3E+String+%7B%0D%0A++++++++match+self+%7B%0D%0A++++++++++++Animal%3A%3ADog+%3D%3E+String%3A%3Afrom%28%22%EB%A9%8D%EB%A9%8D%21%22%29%2C%0D%0A++++++++++++Animal%3A%3ACat+%3D%3E+String%3A%3Afrom%28%22%EC%95%BC%EC%98%B9%7E%22%29%2C%0D%0A++++++++%7D%0D%0A++++%7D%0D%0A%7D%0D%0A%0D%0Afn+main%28%29+%7B%0D%0A++++let+person+%3D+Person+%7B%0D%0A++++++++name%3A+String%3A%3Afrom%28%22%EA%B9%80%EC%95%84%EC%A3%BC%22%29%2C%0D%0A++++%7D%3B%0D%0A++++let+dog+%3D+Animal%3A%3ADog%3B%0D%0A%0D%0A++++%2F%2F+%EA%B5%AC%EC%A1%B0%EC%B2%B4%EC%99%80+%EC%97%B4%EA%B1%B0%ED%98%95+%EC%9D%B8%EC%8A%A4%ED%84%B4%EC%8A%A4%EC%97%90+greet+%EB%A9%94%EC%84%9C%EB%93%9C+%EC%82%AC%EC%9A%A9%0D%0A++++println%21%28%22%7B%7D%22%2C+person.greet%28%29%29%3B%0D%0A++++println%21%28%22%7B%7D%22%2C+dog.greet%28%29%29%3B%0D%0A%7D%0D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/19_ko.html b/docs/19_ko.html index 35e9a41..74e5828 100644 --- a/docs/19_ko.html +++ b/docs/19_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -48,17 +48,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20make_nothing()%20-%3E%20()%20%7B%0A%20%20%20%20return%20()%3B%0A%7D%0A%0A%2F%2F%20the%20return%20type%20is%20implied%20as%20()%0Afn%20make_nothing2()%20%7B%0A%20%20%20%20%2F%2F%20this%20function%20will%20return%20()%20if%20nothing%20is%20specified%20to%20return%0A%7D%0A%0Afn%20main()%20%7B%0A%20%20%20%20let%20a%20%3D%20make_nothing()%3B%0A%20%20%20%20let%20b%20%3D%20make_nothing2()%3B%0A%0A%20%20%20%20%2F%2F%20Printing%20a%20debug%20string%20for%20a%20and%20b%0A%20%20%20%20%2F%2F%20Because%20it's%20hard%20to%20print%20nothingness%0A%20%20%20%20println!(%22The%20value%20of%20a%3A%20%7B%3A%3F%7D%22%2C%20a)%3B%0A%20%20%20%20println!(%22The%20value%20of%20b%3A%20%7B%3A%3F%7D%22%2C%20b)%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/20_ko.html b/docs/20_ko.html index f606299..6e1b5aa 100644 --- a/docs/20_ko.html +++ b/docs/20_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -46,17 +46,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2018&code=fn%20swap(x%3A%20i32%2C%20y%3A%20i32)%20-%3E%20(i32%2C%20i32)%20%7B%0A%20%20%20%20return%20(y%2C%20x)%3B%0A%7D%0A%0Afn%20main()%20%7B%0A%20%20%20%20%2F%2F%20return%20a%20tuple%20of%20return%20values%0A%20%20%20%20let%20result%20%3D%20swap(123%2C%20321)%3B%0A%20%20%20%20println!(%22%7B%7D%20%7B%7D%22%2C%20result.0%2C%20result.1)%3B%0A%0A%20%20%20%20%2F%2F%20destructure%20the%20tuple%20into%20two%20variables%20names%0A%20%20%20%20let%20(a%2C%20b)%20%3D%20swap(result.0%2C%20result.1)%3B%0A%20%20%20%20println!(%22%7B%7D%20%7B%7D%22%2C%20a%2C%20b)%3B%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/21_ko.html b/docs/21_ko.html index 93dc30e..3891ef4 100644 --- a/docs/21_ko.html +++ b/docs/21_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -54,17 +54,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%2F%2F+%EC%86%8C%EC%9C%A0%EA%B6%8C%2C+%EB%B9%8C%EB%A6%BC%2C+%EC%B0%B8%EC%A1%B0%2C+%EB%B2%94%EC%9C%84+%EB%93%B1%EC%9D%98+%EA%B8%B0%EB%8A%A5%EC%9D%84+%ED%95%9C+%EB%B2%88%EC%97%90+%EC%82%AC%EC%9A%A9%0D%0A%23%5Bderive%28Debug%29%5D%0D%0Astruct+MyStruct+%7B%0D%0A++++data%3A+String%2C%0D%0A%7D%0D%0A%0D%0Afn+print_and_modify%28s%3A+%26mut+MyStruct%29+%7B%0D%0A++++println%21%28%22%5Ct%3E+MyStruct%EB%A5%BC+%EC%B0%B8%EC%A1%B0%3A+%7B%3A%3F%7D%22%2C+s%29%3B%0D%0A++++s.data.push_str%28%22+%EC%88%98%EC%A0%95%EB%90%A8%22%29%3B%0D%0A%7D%0D%0A%0D%0Afn+main%28%29+%7B%0D%0A++++let+mut+my_struct1+%3D+MyStruct+%7B%0D%0A++++++++data%3A+String%3A%3Afrom%28%22MyStruct1%22%29%2C%0D%0A++++%7D%3B%0D%0A%0D%0A++++let+mut+my_struct2+%3D+MyStruct+%7B%0D%0A++++++++data%3A+String%3A%3Afrom%28%22MyStruct2%22%29%2C%0D%0A++++%7D%3B%0D%0A%0D%0A++++%2F%2F+%EB%B6%88%EB%B3%80+%EC%B0%B8%EC%A1%B0%EB%A5%BC+%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC+%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%A5%BC+%EC%B6%9C%EB%A0%A5%ED%95%A9%EB%8B%88%EB%8B%A4.%0D%0A++++println%21%28%22%EB%B6%88%EB%B3%80+%EC%B0%B8%EC%A1%B0%3A+%7B%3A%3F%7D%22%2C+%26my_struct1%29%3B%0D%0A%0D%0A++++%2F%2F+%EA%B0%80%EB%B3%80+%EC%B0%B8%EC%A1%B0%EB%A5%BC+%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC+%EB%8D%B0%EC%9D%B4%ED%84%B0%EB%A5%BC+%EC%88%98%EC%A0%95%ED%95%A9%EB%8B%88%EB%8B%A4.%0D%0A++++print_and_modify%28%26mut+my_struct1%29%3B%0D%0A++++println%21%28%22%EC%88%98%EC%A0%95%EB%90%9C+MyStruct1%3A+%7B%3A%3F%7D%22%2C+my_struct1%29%3B%0D%0A%0D%0A++++%2F%2F+%EB%B2%94%EC%9C%84%EB%A5%BC+%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC+%EB%B9%8C%EB%A6%BC%EC%9D%98+%EA%B7%9C%EC%B9%99%EC%9D%84+%EB%B3%B4%EC%97%AC%EC%A4%8D%EB%8B%88%EB%8B%A4.%0D%0A++++%7B%0D%0A++++++++let+mut_ref+%3D+%26mut+my_struct2%3B+%2F%2F+%EA%B0%80%EB%B3%80+%EC%B0%B8%EC%A1%B0%EB%A5%BC+%EC%83%9D%EC%84%B1%ED%95%A9%EB%8B%88%EB%8B%A4.%0D%0A++++++++print_and_modify%28mut_ref%29%3B+%2F%2F+%EA%B0%80%EB%B3%80+%EC%B0%B8%EC%A1%B0%EB%A5%BC+%ED%95%A8%EC%88%98%EC%97%90+%EC%A0%84%EB%8B%AC%ED%95%A9%EB%8B%88%EB%8B%A4.%0D%0A++++++++%2F%2F+%EC%9D%B4+%EC%A7%80%EC%A0%90%EC%97%90%EC%84%9C+mut_ref%EB%A5%BC+%EB%8D%94+%EC%9D%B4%EC%83%81+%EC%82%AC%EC%9A%A9%ED%95%A0+%EC%88%98+%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.%0D%0A++++%7D%0D%0A%0D%0A++++%2F%2F+%EB%B2%94%EC%9C%84%EB%A5%BC+%EB%B2%97%EC%96%B4%EB%82%9C+%ED%9B%84%EC%97%90%EB%8A%94+%EC%9B%90%EB%9E%98+%EB%B3%80%EC%88%98%EB%A5%BC+%EB%8B%A4%EC%8B%9C+%EC%82%AC%EC%9A%A9%ED%95%A0+%EC%88%98+%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%0D%0A++++println%21%28%22%EC%88%98%EC%A0%95%EB%90%9C+MyStruct2%3A+%7B%3A%3F%7D%22%2C+my_struct2%29%3B%0D%0A%0D%0A++++%2F%2F+%EC%86%8C%EC%9C%A0%EA%B6%8C%EC%9D%84+%EC%9D%B4%EB%8F%99%EC%8B%9C%ED%82%B5%EB%8B%88%EB%8B%A4.%0D%0A++++let+my_struct3+%3D+MyStruct+%7B%0D%0A++++++++data%3A+String%3A%3Afrom%28%22MyStruct3%22%29%2C%0D%0A++++%7D%3B%0D%0A++++let+my_struct4+%3D+my_struct3%3B+%2F%2F+%EC%86%8C%EC%9C%A0%EA%B6%8C%EC%9D%84+%EC%9D%B4%EB%8F%99%EC%8B%9C%ED%82%B5%EB%8B%88%EB%8B%A4.%0D%0A++++%2F%2F+%EC%9D%B4%EC%A0%9C+my_struct3%EC%9D%80+%EC%82%AC%EC%9A%A9%ED%95%A0+%EC%88%98+%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.%0D%0A++++println%21%28%22%EC%86%8C%EC%9C%A0%EA%B6%8C%EC%9D%B4+%EC%9D%B4%EB%8F%99%EB%90%9C+MyStruct4%3A+%7B%3A%3F%7D%22%2C+my_struct4%29%3B%0D%0A%7D%0D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/23_ko.html b/docs/23_ko.html index cb56331..f97528d 100644 --- a/docs/23_ko.html +++ b/docs/23_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -59,17 +59,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%2F*%0A%EC%9D%B4+%EC%BD%94%EB%93%9C%EC%97%90%EC%84%9C%2C+%EB%A8%BC%EC%A0%80+%22hello%22+%EA%B0%92%EC%9D%84+%EA%B0%96%EB%8A%94+%EA%B0%80%EB%B3%80+String+%EB%B3%80%EC%88%98+s%EB%A5%BC+%EC%84%A0%EC%96%B8%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%0A%EA%B7%B8%EB%9F%B0+%EB%8B%A4%EC%9D%8C+%26+%EC%97%B0%EC%82%B0%EC%9E%90%EB%A5%BC+%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC+s%EC%97%90+%EB%8C%80%ED%95%9C+%EB%B6%88%EB%B3%80+%EC%B0%B8%EC%A1%B0+r1%EC%9D%84+%EB%A7%8C%EB%93%AD%EB%8B%88%EB%8B%A4.%0A%0Ar1%EC%9D%80+%EB%B9%8C%EB%A6%BC%28borrowing%29%EC%9D%98+%EC%98%88%EC%8B%9C%EB%A1%9C%2C+s%EC%9D%98+%EC%86%8C%EC%9C%A0%EA%B6%8C%EC%9D%84+%EA%B0%80%EC%A0%B8%EA%B0%80%EC%A7%80+%EC%95%8A%EA%B3%A0+%EA%B7%B8+%EA%B0%92%EC%9D%84+%EC%9D%BD%EC%9D%84+%EC%88%98+%EC%9E%88%EC%A7%80%EB%A7%8C+%EC%88%98%EC%A0%95%ED%95%A0+%EC%88%98%EB%8A%94+%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.%0A%0Ar1%EC%9D%98+%EA%B0%92%EC%9D%84+%EC%B6%9C%EB%A0%A5%ED%95%9C+%ED%9B%84%2C+r1%EC%9D%B4+%EC%8A%A4%EC%BD%94%ED%94%84%EB%A5%BC+%EB%B2%97%EC%96%B4%EB%82%98+%EB%8D%94+%EC%9D%B4%EC%83%81+%EB%B9%8C%EB%A0%A4%EC%A7%80%EC%A7%80+%EC%95%8A%EA%B2%8C+%EB%90%A9%EB%8B%88%EB%8B%A4.%0A%0A%EA%B7%B8%EB%9F%B0+%EB%8B%A4%EC%9D%8C+%26mut+%EC%97%B0%EC%82%B0%EC%9E%90%EB%A5%BC+%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC+s%EC%97%90+%EB%8C%80%ED%95%9C+%EA%B0%80%EB%B3%80+%EC%B0%B8%EC%A1%B0+r2%EB%A5%BC+%EB%A7%8C%EB%93%AD%EB%8B%88%EB%8B%A4.%0A%0Ar2%EC%9D%80+%EB%98%90+%EB%8B%A4%EB%A5%B8+%EB%B9%8C%EB%A6%BC%EC%9D%98+%EC%98%88%EC%8B%9C%EC%9E%85%EB%8B%88%EB%8B%A4.+%EC%9D%B4%EB%B2%88%EC%97%90%EB%8A%94+s%EB%A5%BC+%EA%B0%80%EB%B3%80%EC%9C%BC%EB%A1%9C+%EB%B9%8C%EB%A0%A4%EC%99%80%EC%84%9C+%EA%B0%92%EC%9D%84+%EC%88%98%EC%A0%95%ED%95%A0+%EC%88%98+%EC%9E%88%EA%B2%8C+%EB%90%A9%EB%8B%88%EB%8B%A4.%0A%0A%EC%9A%B0%EB%A6%AC%EB%8A%94+push_str%28%29+%EB%A9%94%EC%86%8C%EB%93%9C%EB%A5%BC+%ED%86%B5%ED%95%B4+r2%EB%A5%BC+%ED%86%B5%ED%95%B4+%EB%AC%B8%EC%9E%90%EC%97%B4+%22%2C+world%21%22%EB%A5%BC+s%EC%97%90+%EC%B6%94%EA%B0%80%ED%95%98%EA%B3%A0%2C+r2%EC%9D%98+%EA%B0%92%EC%9D%84+%EC%B6%9C%EB%A0%A5%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%0A%EB%A7%88%EC%A7%80%EB%A7%89%EC%9C%BC%EB%A1%9C+r2%EA%B0%80+%EC%8A%A4%EC%BD%94%ED%94%84%EB%A5%BC+%EB%B2%97%EC%96%B4%EB%82%98+%EB%8D%94+%EC%9D%B4%EC%83%81+%EB%B9%8C%EB%A0%A4%EC%A7%80%EC%A7%80+%EC%95%8A%EA%B2%8C+%EB%90%98%EB%A9%B4%2C+s%EB%8A%94+%EB%8B%A4%EC%8B%9C+%EC%9E%90%EC%9C%A0%EB%A1%AD%EA%B2%8C+%EC%82%AC%EC%9A%A9%ED%95%A0+%EC%88%98+%EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.%0A%0A%EC%9D%B4+%EC%BD%94%EB%93%9C+%EC%8A%A4%EB%8B%88%ED%8E%AB%EC%9D%80+Rust%EC%9D%98+%EC%86%8C%EC%9C%A0%EA%B6%8C%EA%B3%BC+%EB%B9%8C%EB%A6%BC+%EC%8B%9C%EC%8A%A4%ED%85%9C%EC%9D%B4+%EA%B0%80%EB%B9%84%EC%A7%80+%EC%BB%AC%EB%A0%89%ED%84%B0+%EC%97%86%EC%9D%B4+%EC%95%88%EC%A0%84%ED%95%98%EA%B3%A0+%ED%9A%A8%EC%9C%A8%EC%A0%81%EC%9D%B8+%EB%A9%94%EB%AA%A8%EB%A6%AC+%EA%B4%80%EB%A6%AC%EB%A5%BC+%EA%B0%80%EB%8A%A5%ED%95%98%EA%B2%8C+%ED%95%98%EB%8A%94+%EB%B0%A9%EC%8B%9D%EC%9D%84+%EB%B3%B4%EC%97%AC%EC%A4%8D%EB%8B%88%EB%8B%A4.%0A%0ARust%EB%8A%94+%EC%BB%B4%ED%8C%8C%EC%9D%BC+%EC%8B%9C%EA%B0%84%EC%97%90+%EC%86%8C%EC%9C%A0%EA%B6%8C%EA%B3%BC+%EB%B9%8C%EB%A6%BC+%EA%B7%9C%EC%B9%99%EC%9D%84+%EA%B0%95%EC%A0%9C%ED%95%A8%EC%9C%BC%EB%A1%9C%EC%8D%A8%0A%0A%EB%A9%94%EB%AA%A8%EB%A6%AC+%EB%88%84%EC%88%98%EB%82%98+%EC%84%B8%EA%B7%B8%EB%A9%98%ED%85%8C%EC%9D%B4%EC%85%98+%ED%8F%B4%ED%8A%B8%EC%99%80+%EA%B0%99%EC%9D%80+%EB%9F%B0%ED%83%80%EC%9E%84+%EC%98%A4%EB%A5%98%EB%A5%BC+%EB%B0%A9%EC%A7%80%ED%95%98%EB%AF%80%EB%A1%9C+Rust+%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%A8%EC%9D%80+%EC%95%88%EC%A0%95%EC%A0%81%EC%9D%B4%EB%A9%B4%EC%84%9C%EB%8F%84+%EB%86%92%EC%9D%80+%EC%84%B1%EB%8A%A5%EC%9D%84+%EB%B3%B4%EC%9E%A5%ED%95%A9%EB%8B%88%EB%8B%A4.%0A*%2F%0A%0Afn+main%28%29+%7B%0A++++let+mut+s+%3D+String%3A%3Afrom%28%22Hello%22%29%3B%0A%0A++++%7B%0A++++++++let+r1+%3D+%26s%3B+%2F%2F+%EB%B6%88%EB%B3%80+%EB%B9%8C%EB%A6%BC%0A++++++++println%21%28%22%7B%7D%22%2C+r1%29%3B%0A++++%7D+%2F%2F+r1%EC%9D%B4+%EC%8A%A4%EC%BD%94%ED%94%84%EB%A5%BC+%EB%B2%97%EC%96%B4%EB%82%A8%0A%0A++++let+r2+%3D+%26mut+s%3B+%2F%2F+%EA%B0%80%EB%B3%80+%EB%B9%8C%EB%A6%BC%0A++++r2.push_str%28%22%2C+world%21%22%29%3B%0A++++println%21%28%22%7B%7D%22%2C+r2%29%3B%0A%7D+%2F%2F+r2%EA%B0%80+%EC%8A%A4%EC%BD%94%ED%94%84%EB%A5%BC+%EB%B2%97%EC%96%B4%EB%82%A8%2C+s%EB%8A%94+%EB%8D%94+%EC%9D%B4%EC%83%81+%EB%B9%8C%EB%A0%A4%EC%A7%80%EC%A7%80+%EC%95%8A%EC%9D%8C%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/24_ko.html b/docs/24_ko.html index 6b0bc55..885f16d 100644 --- a/docs/24_ko.html +++ b/docs/24_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -74,17 +74,6 @@ fn main() { <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%2F%2F+%60drop%60+%ED%95%A8%EC%88%98+%EC%86%8C%EA%B0%9C%3A%0A%2F%2F+Rust%EC%97%90%EC%84%9C%EB%8A%94+%EA%B0%92%EC%9D%B4+%EB%B2%94%EC%9C%84%EB%A5%BC+%EB%B2%97%EC%96%B4%EB%82%A0+%EB%95%8C+%EC%9E%90%EB%8F%99%EC%9C%BC%EB%A1%9C+drop+%ED%95%A8%EC%88%98%EA%B0%80+%ED%98%B8%EC%B6%9C%EB%90%A9%EB%8B%88%EB%8B%A4.%0A%2F%2F+drop+%ED%95%A8%EC%88%98%EB%8A%94+%EB%A9%94%EB%AA%A8%EB%A6%AC%EB%A5%BC+%EC%95%88%EC%A0%84%ED%95%98%EA%B2%8C+%ED%95%B4%EC%A0%9C%ED%95%98%EB%8A%94+%EC%97%AD%ED%95%A0%EC%9D%84+%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%2F%2F+%EC%9D%B4%EB%A5%BC+%ED%86%B5%ED%95%B4+%EA%B0%9C%EB%B0%9C%EC%9E%90%EA%B0%80+%EC%A7%81%EC%A0%91+%EB%A9%94%EB%AA%A8%EB%A6%AC+%ED%95%B4%EC%A0%9C%EB%A5%BC+%EA%B4%80%EB%A6%AC%ED%95%A0+%ED%95%84%EC%9A%94%EA%B0%80+%EC%97%86%EC%8A%B5%EB%8B%88%EB%8B%A4.%0Astruct+CustomStruct+%7B%0A++++data%3A+String%2C%0A%7D%0A%0Aimpl+Drop+for+CustomStruct+%7B%0A++++fn+drop%28%26mut+self%29+%7B%0A++++++++println%21%28%22Dropping+CustomStruct+with+data%3A+%7B%7D%22%2C+self.data%29%3B%0A++++%7D%0A%7D%0A%0Afn+main%28%29+%7B%0A++++let+custom+%3D+CustomStruct+%7B%0A++++++++data%3A+String%3A%3Afrom%28%22hello%22%29%2C%0A++++%7D%3B%0A++++println%21%28%22Created+CustomStruct+with+data%3A+%7B%7D%22%2C+custom.data%29%3B%0A++++%2F%2F+custom%EC%9D%80+%EC%9D%B4+%EC%8A%A4%EC%BD%94%ED%94%84%EB%A5%BC+%EB%B2%97%EC%96%B4%EB%82%98%EB%A9%B4%EC%84%9C+drop+%ED%95%A8%EC%88%98%EA%B0%80+%ED%98%B8%EC%B6%9C%EB%90%98%EC%96%B4+%EB%A9%94%EB%AA%A8%EB%A6%AC%EA%B0%80+%EC%95%88%EC%A0%84%ED%95%98%EA%B2%8C+%ED%95%B4%EC%A0%9C%EB%90%A9%EB%8B%88%EB%8B%A4.%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/25_ko.html b/docs/25_ko.html index 9f5b87e..a589fc5 100644 --- a/docs/25_ko.html +++ b/docs/25_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -44,17 +44,6 @@ </div> <div class="code"><center><img src="/ajou.webp" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/26_ko.html b/docs/26_ko.html index 8d91297..2298821 100644 --- a/docs/26_ko.html +++ b/docs/26_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -75,17 +75,6 @@ struct Person<'a> { <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%2F%2F+%EA%B5%AC%EC%A1%B0%EC%B2%B4+%EC%A0%95%EC%9D%98%0A%2F%2F+%EB%91%90+%EA%B0%9C%EC%9D%98+%EC%B0%B8%EC%A1%B0%EB%A5%BC+%EA%B0%80%EC%A7%80%EB%8A%94+%EA%B5%AC%EC%A1%B0%EC%B2%B4%EB%A5%BC+%EB%A7%8C%EB%93%AD%EB%8B%88%EB%8B%A4.+%EA%B0%81+%EC%B0%B8%EC%A1%B0%EB%8A%94+%EB%8B%A4%EB%A5%B8+%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84%EC%9D%84+%EA%B0%80%EC%A7%91%EB%8B%88%EB%8B%A4.%0Astruct+TwoRefs%3C%27a%2C+%27b%3E+%7B%0A++++ref_a%3A+%26%27a+str%2C%0A++++ref_b%3A+%26%27b+str%2C%0A%7D%0A%0A%2F%2F+%ED%95%A8%EC%88%98+%EC%A0%95%EC%9D%98%0A%2F%2F+%EB%91%90+%EA%B0%9C%EC%9D%98+%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84%EC%9D%84+%EC%82%AC%EC%9A%A9%ED%95%98%EB%8A%94+%ED%95%A8%EC%88%98%EC%9E%85%EB%8B%88%EB%8B%A4.%0A%2F%2F+%EC%9E%85%EB%A0%A5+%EB%AC%B8%EC%9E%90%EC%97%B4%EC%9D%98+%EA%B8%B8%EC%9D%B4%EC%97%90+%EB%94%B0%EB%9D%BC+%EB%91%90+%EB%AC%B8%EC%9E%90%EC%97%B4+%EC%A4%91+%ED%95%98%EB%82%98%EB%A5%BC+%EB%B0%98%ED%99%98%ED%95%A9%EB%8B%88%EB%8B%A4.%0A%2F%2F+%27b%3A+%27a%EB%A1%9C+%EB%91%90+%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84+%EA%B0%84%EC%9D%98+%EA%B4%80%EA%B3%84%EB%A5%BC+%EC%84%A4%EC%A0%95%ED%95%B4%EC%84%9C%0A%2F%2F+%27b+%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84%EC%9D%80+%27a+%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84%EB%B3%B4%EB%8B%A4+%EA%B8%B8%EA%B1%B0%EB%82%98+%EA%B0%99%EC%95%84%EC%95%BC+%ED%95%A9%EB%8B%88%EB%8B%A4.%0Afn+choose_str%3C%27a%2C+%27b%3A+%27a%3E%28str_a%3A+%26%27a+str%2C+str_b%3A+%26%27b+str%29+-%3E+%26%27a+str+%7B%0A++++if+str_a.len%28%29+%3E+str_b.len%28%29+%7B%0A++++++++str_a%0A++++%7D+else+%7B%0A++++++++str_b%0A++++%7D%0A%7D%0A%0Afn+main%28%29+%7B%0A++++%2F%2F+%EB%AC%B8%EC%9E%90%EC%97%B4+%EC%83%9D%EC%84%B1%0A++++let+a+%3D+String%3A%3Afrom%28%22%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94.%22%29%3B%0A++++let+b+%3D+String%3A%3Afrom%28%22%EB%B0%98%EA%B0%91%EC%8A%B5%EB%8B%88%EB%8B%A4.%22%29%3B%0A%0A++++%7B%0A++++++++%2F%2F+%EB%91%90+%EA%B0%9C%EC%9D%98+%EC%84%9C%EB%A1%9C+%EB%8B%A4%EB%A5%B8+%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84%EC%9D%84+%EA%B0%80%EC%A7%84+%EA%B5%AC%EC%A1%B0%EC%B2%B4+%EC%83%9D%EC%84%B1%0A++++++++let+c+%3D+%22%EC%97%AC%EA%B8%B0%EC%84%9C+%EB%A7%8C%EB%82%98%EC%84%9C+%EB%B0%98%EA%B0%80%EC%9B%8C%EC%9A%94%21%22%3B%0A++++++++let+two_refs+%3D+TwoRefs+%7B%0A++++++++++++ref_a%3A+%26a%2C%0A++++++++++++ref_b%3A+%26c%2C%0A++++++++%7D%3B%0A%0A++++++++%2F%2F+%ED%95%A8%EC%88%98+%ED%98%B8%EC%B6%9C%0A++++++++let+longest_str+%3D+choose_str%28two_refs.ref_a%2C+two_refs.ref_b%29%3B%0A++++++++println%21%28%22%EA%B0%80%EC%9E%A5+%EA%B8%B4+%EB%AC%B8%EC%9E%90%EC%97%B4%3A+%7B%7D%22%2C+longest_str%29%3B%0A++++%7D%0A%0A++++%2F%2F+%EC%97%AC%EA%B8%B0%EC%84%9C+two_refs%EB%8A%94+%EC%82%AC%EB%9D%BC%EC%A7%80%EA%B3%A0%2C+%EB%9D%BC%EC%9D%B4%ED%94%84%ED%83%80%EC%9E%84+%27a%EC%99%80+%27b%EB%8A%94+%EB%8D%94+%EC%9D%B4%EC%83%81+%EC%A1%B4%EC%9E%AC%ED%95%98%EC%A7%80+%EC%95%8A%EC%8A%B5%EB%8B%88%EB%8B%A4.%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/27_ko.html b/docs/27_ko.html index 3de42bc..7026597 100644 --- a/docs/27_ko.html +++ b/docs/27_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -63,17 +63,6 @@ </div> <div class="code"><center><img src="/ajou.webp" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/28_ko.html b/docs/28_ko.html index e3a7df3..d515f45 100644 --- a/docs/28_ko.html +++ b/docs/28_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -44,17 +44,6 @@ </div> <div class="code"><center><img src="/ajou.webp" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/30_ko.html b/docs/30_ko.html index bbca51e..d8c4b65 100644 --- a/docs/30_ko.html +++ b/docs/30_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -44,17 +44,6 @@ </div> <div class="code"><center><img src="/ferris_lofi.png" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/32_ko.html b/docs/32_ko.html index 2cda028..c03db10 100644 --- a/docs/32_ko.html +++ b/docs/32_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -44,17 +44,6 @@ </div> <div class="code"><center><img src="/ferris_lofi.png" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/33_ko.html b/docs/33_ko.html index 2084211..d1e2416 100644 --- a/docs/33_ko.html +++ b/docs/33_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -46,17 +46,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=macro_rules%21+times+%7B%0D%0A++++%28%24num%3Aexpr%2C+%24body%3Ablock%29+%3D%3E+%7B%0D%0A++++++++times%21%28None%2C+%24num%2C+%24body%29%3B%0D%0A++++%7D%3B%0D%0A++++%28%24label%3Aexpr%2C+%24num%3Aexpr%2C+%24body%3Ablock%29+%3D%3E+%7B%0D%0A++++++++if+let+Some%28label%29+%3D+%24label+%7B%0D%0A++++++++++++println%21%28%22Task%3A+%7B%7D%22%2C+label%29%3B%0D%0A++++++++%7D%0D%0A%0D%0A++++++++let+mut+total_time+%3D+std%3A%3Atime%3A%3ADuration%3A%3Anew%280%2C+0%29%3B%0D%0A++++++++let+mut+min_time+%3D+std%3A%3Atime%3A%3ADuration%3A%3Afrom_secs%28u64%3A%3AMAX%29%3B%0D%0A++++++++let+mut+max_time+%3D+std%3A%3Atime%3A%3ADuration%3A%3Afrom_secs%280%29%3B%0D%0A%0D%0A++++++++for+_+in+0..%24num+%7B%0D%0A++++++++++++let+start_time+%3D+std%3A%3Atime%3A%3AInstant%3A%3Anow%28%29%3B%0D%0A++++++++++++%24body%0D%0A++++++++++++let+elapsed+%3D+start_time.elapsed%28%29%3B%0D%0A++++++++++++total_time+%2B%3D+elapsed%3B%0D%0A++++++++++++min_time+%3D+min_time.min%28elapsed%29%3B%0D%0A++++++++++++max_time+%3D+max_time.max%28elapsed%29%3B%0D%0A++++++++++++println%21%28%0D%0A++++++++++++++++%22Execution+time+for+iteration%3A+%7B%7D+ms%22%2C%0D%0A++++++++++++++++elapsed.as_millis%28%29%0D%0A++++++++++++%29%3B%0D%0A++++++++%7D%0D%0A%0D%0A++++++++let+avg_time+%3D+total_time+%2F+%24num%3B%0D%0A++++++++println%21%28%22Average+execution+time%3A+%7B%7D+ms%22%2C+avg_time.as_millis%28%29%29%3B%0D%0A++++++++println%21%28%22Minimum+execution+time%3A+%7B%7D+ms%22%2C+min_time.as_millis%28%29%29%3B%0D%0A++++++++println%21%28%22Maximum+execution+time%3A+%7B%7D+ms%22%2C+max_time.as_millis%28%29%29%3B%0D%0A++++%7D%3B%0D%0A%7D%0D%0A%0D%0Afn+is_prime%28n%3A+u64%29+-%3E+bool+%7B%0D%0A++++if+n+%3C%3D+1+%7B%0D%0A++++++++return+false%3B%0D%0A++++%7D%0D%0A++++for+i+in+2..%3D%28%28n+as+f64%29.sqrt%28%29+as+u64%29+%7B%0D%0A++++++++if+n+%25+i+%3D%3D+0+%7B%0D%0A++++++++++++return+false%3B%0D%0A++++++++%7D%0D%0A++++%7D%0D%0A++++true%0D%0A%7D%0D%0A%0D%0Afn+main%28%29+%7B%0D%0A++++times%21%28Some%28%22Prime+number+summation%22%29%2C+3%2C+%7B%0D%0A++++++++let+mut+sum+%3D+0u64%3B%0D%0A++++++++let+mut+num+%3D+2u64%3B%0D%0A++++++++let+mut+counter+%3D+0%3B%0D%0A%0D%0A++++++++while+counter+%3C+10_000+%7B%0D%0A++++++++++++if+is_prime%28num%29+%7B%0D%0A++++++++++++++++sum+%2B%3D+num%3B%0D%0A++++++++++++++++counter+%2B%3D+1%3B%0D%0A++++++++++++%7D%0D%0A++++++++++++num+%2B%3D+1%3B%0D%0A++++++++%7D%0D%0A++++++++println%21%28%22Sum+of+first+10%2C000+prime+numbers%3A+%7B%7D%22%2C+sum%29%3B%0D%0A++++%7D%29%3B%0D%0A%7D" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/35_ko.html b/docs/35_ko.html index 164c26e..46d06eb 100644 --- a/docs/35_ko.html +++ b/docs/35_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -44,17 +44,6 @@ </div> <div class="code"><center><img src="/ferris_lofi.png" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/37_ko.html b/docs/37_ko.html index 1a22c4a..54bd696 100644 --- a/docs/37_ko.html +++ b/docs/37_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -44,17 +44,6 @@ </div> <div class="code"><center><img src="/ferris_lofi.png" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/TOC_ko.html b/docs/TOC_ko.html index b18e7ad..0382cc0 100644 --- a/docs/TOC_ko.html +++ b/docs/TOC_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> diff --git a/docs/chapter_1_ko.html b/docs/chapter_1_ko.html index 4dae925..130957d 100644 --- a/docs/chapter_1_ko.html +++ b/docs/chapter_1_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -48,17 +48,6 @@ println!("Hello, Rustacean!");</code></pre> </div> <div class="code"><center><img src="/ferris_lofi.png" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/chapter_2_ko.html b/docs/chapter_2_ko.html index 6fb07b1..6202d9a 100644 --- a/docs/chapter_2_ko.html +++ b/docs/chapter_2_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -64,17 +64,6 @@ </div> <div class="code"><center><img src="/ferris.webp" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/chapter_3_ko.html b/docs/chapter_3_ko.html index ce3d62f..479d9e8 100644 --- a/docs/chapter_3_ko.html +++ b/docs/chapter_3_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -44,17 +44,6 @@ </div> <div class="code"><center><img src="/ajou.webp" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/chapter_4_ko.html b/docs/chapter_4_ko.html index c1ea4f1..daafe64 100644 --- a/docs/chapter_4_ko.html +++ b/docs/chapter_4_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -44,17 +44,6 @@ </div> <div class="code"><center><img src="/ajou.webp" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/chapter_5_ko.html b/docs/chapter_5_ko.html index 8d3e1aa..8089e0a 100644 --- a/docs/chapter_5_ko.html +++ b/docs/chapter_5_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -45,17 +45,6 @@ </div> <div class="code"><center><img src="/ajou.webp" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/chapter_6_ko.html b/docs/chapter_6_ko.html index 2874ea0..e0e1193 100644 --- a/docs/chapter_6_ko.html +++ b/docs/chapter_6_ko.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -45,17 +45,6 @@ </div> <div class="code"><center><img src="/ajou.webp" alt="Rust Tutorial" width="300" height="100%"></center></div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/index.html b/docs/index.html index 2fe0219..71f55ac 100644 --- a/docs/index.html +++ b/docs/index.html @@ -8,7 +8,7 @@ <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -68,17 +68,6 @@ <iframe id="rust-playground" width="100%" src="https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=%2F%2F%20C-family%20%EC%96%B8%EC%96%B4%2C%20%EB%A9%94%EC%9D%B8%20%ED%95%A8%EC%88%98%EC%97%90%EC%84%9C%20%EC%8B%9C%EC%9E%91%ED%95%A8%0Afn%20main()%20%7B%0A%20%20%20%20println!(%22Hello%20%EB%9F%AC%EC%8A%A4%ED%8A%B8%F0%9F%A6%80%22)%3B%20%2F%2F%20%EC%A3%BC%EC%84%9D%0A%7D%0A" scrolling="no" frameborder="no" allowtransparency="true" allowfullscreen="true" sandbox="allow-forms allow-pointer-lock allow-popups allow-same-origin allow-scripts allow-modals" title="Rust Playground" loading="lazy"></iframe> </div> </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/docs/tour.css b/docs/tour.css index 764e165..0079ae1 100644 --- a/docs/tour.css +++ b/docs/tour.css @@ -65,7 +65,7 @@ code { font-family: "Noto Sans KR", sans-serif; font-size: 1.1em; font-weight: 500; - padding: 0.3em; + padding: 0.2em; margin: 0.5em 0; border-radius: 4px; background-color: #ffd2b3; diff --git a/frontend/.eslintrc.js b/frontend/.eslintrc.js index 8f25ee6..33fc6d2 100644 --- a/frontend/.eslintrc.js +++ b/frontend/.eslintrc.js @@ -10,6 +10,6 @@ module.exports = { ecmaVersion: 12, }, rules: { - "space-before-function-paren": ["error", "always"], + // "space-before-function-paren": ["error", "always"], }, }; diff --git a/frontend/generate.js b/frontend/generate.js index 28161a9..7e9c1f5 100644 --- a/frontend/generate.js +++ b/frontend/generate.js @@ -111,7 +111,7 @@ const getHead = (words, lang) => `<!DOCTYPE html> <meta content="utf-8" http-equiv="encoding"> <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2"> <meta name="keywords" content="Rust, Programming, Learning"> - <meta name="description" content="Rust tutorial website based on tour_of_rust"> + <meta name="description" content="Rust tutorial website based on tour_of_rust by 최석원"> <meta name="theme-color" content="#ff6801"/> <meta http-equiv="Cache-Control" content="max-age=3600"> @@ -209,17 +209,6 @@ function template( : `<div class="code"><center><img src="${source}" alt="Rust Tutorial" width="300" height="100%"></center></div>` } </div> - <!-- <script> - document.addEventListener("DOMContentLoaded", function() { - // Select the widget's text element using its XPath - const xpath = '/html/body/main/div/div/div[1]/div[1]/div/button[1]/div'; - const widgetText = document.evaluate(xpath, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue; - - // Change the text content of the element - widgetText.textContent = "New Text"; - }); - </script> --> - <script> var pres = document.querySelectorAll("pre>code"); for (var i = 0; i < pres.length; i++) { diff --git a/frontend/lessons/ko/chapter_1.yaml b/frontend/lessons/ko/chapter_1.yaml index 75bf56a..faaf768 100644 --- a/frontend/lessons/ko/chapter_1.yaml +++ b/frontend/lessons/ko/chapter_1.yaml @@ -103,33 +103,42 @@ Rust는 다양한 익숙한 유형을 제공합니다: - * booleans - `bool`로 참/거짓을 나타냅니다. + <div align="center"> + <p> + <img src="https://user-images.githubusercontent.com/2356749/228573875-e7980e94-248c-4477-b522-79f9532bf0f1.png"> + </p> + </div> + + + * booleans - `bool`로 참/거짓 - * unsigned integers (부호 없는 정수) - 음이 아닌 정수를 나타내는 `u8`, `u16`, `u32`, `u64`, `u128`입니다. + * unsigned integers (부호 없는 정수) - 음이 아닌 정수를 나타내는 `u8`, `u16`, `u32`, `u64`, `u128` - * signed integers (부호 있는 정수) - 정수를 나타내는 `i8`, `i16`, `i32`, `i64`, `i128`입니다. + * signed integers (부호 있는 정수) - 정수를 나타내는 `i8`, `i16`, `i32`, `i64`, `i128` - * pointer sized integers - 메모리에서 색인과 항목의 크기를 나타내는 `usize`, `isize`입니다. + * pointer sized integers - 메모리에서 색인과 항목의 크기를 나타내는 `usize`, `isize` * floating point - `f32` `f64` - * tuple - 고정된 값의 시퀀스를 스택에 전달하는 `(value, value, ...)` 입니다. + * tuple - 고정된 값의 시퀀스를 스택에 전달하는 `(value, value, ...)` - * arrays - 컴파일 시점에서 크기가 고정되어 있는 비슷한 요소의 집합으로 `[value, value, ...]` 입니다. + * arrays - 컴파일 시점에서 크기가 고정되어 있는 비슷한 요소의 집합으로 `[value, value, ...]` - * slices - 런타임에 길이가 알려진 비슷한 요소의 집합입니다. + * slices - 런타임에 길이가 알려진 비슷한 요소의 집합 - * `str`(문자열 슬라이스) - 런타임에 길이가 알려진 텍스트입니다. + * `str`(문자열 슬라이스) - 런타임에 길이가 알려진 텍스트 + + + 숫자형은 숫자 끝에 유형을 명시하여 명시적으로 지정할 수 있습니다(예: `13u32`, `2u8`). 다른 언어에서 사용하는 것보다 텍스트는 더 복잡할 수 있습니다. - Rust가 시스템 프로그래밍 언어이기 때문에, 기존에 익숙하지 않은 메모리 문제에 대해서도 신경쓰고 있습니다. - 이에 대해서는 나중에 자세히 다룰 예정입니다. + Rust가 시스템 프로그래밍 언어이기 때문에, 기존에 익숙하지 않은 메모리 문제에 대해서도 신경쓰고 있습니다. - 숫자형은 숫자 끝에 유형을 명시하여 명시적으로 지정할 수 있습니다(예: `13u32`, `2u8`). + 이에 대해서는 다음 페이지를 참고해주세요! - title: 문자열 code: >- https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&code=fn+main%28%29+%7B%0A++++let+my_literal%3A+%26%27static+str+%3D+%22%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%21%22%3B%0A%0A++++let+full_name+%3D+%22%ED%99%8D%EA%B8%B8%EB%8F%99%22%3B%0A++++let+first_name%3A+%26str+%3D+%26full_name%5B..6%5D%3B+%2F%2F+%22%ED%99%8D%EA%B8%B8%22%EB%A7%8C+%EC%B0%B8%EC%A1%B0%2C+3+per+each+korean+char.%0A++++println%21%28%22%7B%7D%22%2C+first_name%29%3B%0A%0A++++let+mut+my_string+%3D+String%3A%3Afrom%28%22%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%21%22%29%3B%0A++++my_string.push_str%28%22+%EB%A7%8C%EB%82%98%EC%84%9C+%EB%B0%98%EA%B0%80%EC%9B%8C%EC%9A%94%21%22%29%3B%0A++++println%21%28%22%7B%7D%22%2C+my_string%29%3B%0A%0A++++let+my_str+%3D+%22%EC%95%88%EB%85%95%ED%95%98%EC%84%B8%EC%9A%94%21%22%3B%0A++++let+my_string+%3D+my_str.to_owned%28%29%3B+%2F%2F+String+%ED%83%80%EC%9E%85%EC%9C%BC%EB%A1%9C+%EB%B3%80%EA%B2%BD%0A++++println%21%28%22%7B%3A%23%3F%7D%22%2C+my_string%29%3B%0A%0A++++let+my_number+%3D+42%3B%0A++++let+my_number_string+%3D+my_number.to_string%28%29%3B+%2F%2F+%2242%22%EB%9D%BC%EB%8A%94+String+%ED%83%80%EC%9E%85%EC%9C%BC%EB%A1%9C+%EB%B3%80%EA%B2%BD%0A++++println%21%28%22%7B%7D%22%2C+my_number_string%29%3B%0A%7D%0A -- GitLab