Skip to content

Commit

Permalink
update 2024年 12月 08日 星期日 17:33:48 CST
Browse files Browse the repository at this point in the history
  • Loading branch information
ccrysisa committed Dec 8, 2024
1 parent ea6832e commit d39cf35
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/hugo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
build:
runs-on: ubuntu-latest
env:
HUGO_VERSION: 0.131.0
HUGO_VERSION: 0.139.3
steps:
- name: Install Hugo CLI
run: |
Expand Down
2 changes: 1 addition & 1 deletion assets/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"baseUrl": ".",
"paths": {
"*": [
"..\\themes\\FixIt\\assets\\*"
"../themes/FixIt/assets/*"
]
}
}
Expand Down
14 changes: 14 additions & 0 deletions content/posts/rust/demystify-rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,17 @@ repost:
---

<!--more-->

## 基础入门

使用变量绑定而不是变量赋值对于 Rust 所有权诠释的非常准确,下面这段话学完所有权后再看有不一样的体会:

{{< admonition quote >}}
为何不用赋值而用绑定呢(其实你也可以称之为赋值,但是绑定的含义更清晰准确)?这里就涉及 Rust 最核心的原则——所有权,简单来讲,任何内存对象都是有主人的,而且一般情况下完全属于它的主人,绑定就是把这个对象绑定给一个变量,让这个变量成为它的主人(聪明的读者应该能猜到,在这种情况下,该对象之前的主人就会丧失对该对象的所有权),像极了我们的现实世界,不是吗?
{{< /admonition >}}

## References

- [Rust 语言圣经 (Rust Course)](https://course.rs/)
- [Rust By Practice (Rust 练习实践)](https://practice-zh.course.rs/)
- [CodeCrafters](https://app.codecrafters.io/)
6 changes: 0 additions & 6 deletions content/posts/sysprog/gnu-linux-dev.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,12 +72,6 @@ GNU/Linux 开发工具,几乎从硬件到软件,Linux 平台能够自下而

***推荐通过 [LearnGitBranching][learn-git-branching] 来熟悉 Git 命令!!!***


以下资源作为自学资源,用于补充自己不熟悉的操作,或者作为以上资料的补充工具手册。

- [Git 中文教学 - YouTube][git-tutorials-zh] ([学习记录]({{< relref "../toolkit/git-learn.md" >}}))
- [30 天精通 Git 版本控制 - GitHub][learn-git-in-30-days]

{{< admonition warning >}}
原文档中的将公钥复制到 clipboard 中使用了 `clip` 命令,但是这个命令在 Ubuntu 中并没有对应的命令。可以使用 `xclip` + `alias` 达到近似效果。

Expand Down

0 comments on commit d39cf35

Please sign in to comment.