Skip to content
Snippets Groups Projects
Select Git revision
  • 6849289b93b4111fb8f02698347e6f5c34fd9f68
  • master default
2 results

08_ko.html

Blame
  • 08_ko.html 4.33 KiB
    <!DOCTYPE html>
        <html lang="ko">
        <head>
            <title>Rust 튜토리얼 - 자기주도프로젝트</title>
    
            <meta charset="UTF-8">
            <meta content="text/html;charset=utf-8" http-equiv="Content-Type">
            <meta content="utf-8" http-equiv="encoding">
            <meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1, maximum-scale=1"
            <meta name="keywords" content="Rust, Programming, Learning">
            <meta name="description" content="Rust tutorial website based on tour_of_rust">
            <meta name="theme-color" content="#ff6801"/>
            <meta http-equiv="Cache-Control" content="max-age=3600">
            
            <link rel="stylesheet" href="tour.css">
            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/night-owl.min.css">
            <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.13.1/css/all.min.css">
            
            <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
            <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
            <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
            <link rel="/manifest" href="./site.webmanifest">
            
            <script src="//unpkg.com/@highlightjs/cdn-assets@11.7.0/highlight.min.js"></script>
    
            <script src="./tour.js" defer></script>
            <!-- <script>hljs.highlightAll();</script> -->
            <script src="./highlight.badge.min.js"></script>
        </head>
        <body>
            <div class="tour">
                <div class="header">
                    <span class="title"><a href="index.html">Rust 튜토리얼</a></span>
                    <span class="nav">
                    <span class="toc"><a href="TOC_ko.html">목차</a></span>
                </div>
                <div class="page">
                <h1>변수 업데이트</h1>
                <p>Rust는 변수가 변경 가능한지 여부에 대해 많은 주의를 기울입니다.</p>
    <ul>
    <li><strong>mutable (가변)</strong> - 컴파일러는 해당 변수에 대해 <code>쓰거나 읽을 수</code> 있도록 허용합니다.</li>
    <li><strong>immutable (불변)</strong> - 컴파일러는 해당 변수에 대해서 <code>읽기만</code> 가능하도록 허용합니다.</li>
    </ul>
    <p>가변 값은 <strong>mut</strong> 키워드로 구분됩니다.</p>
                <div class="bottomnav">
                    <span class="back"><a href="07_ko.html" rel="prev">❮ 이전</a></span>
                    <span class="next"><a href="09_ko.html" rel="next">다음 ❯</a></span>
                </div>
                </div>
                <div class="code">
                <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++) {
                hljs.highlightElement(pres[i]);
            }
            var options = {