summaryrefslogtreecommitdiff
path: root/docs/appendix-a.md
diff options
context:
space:
mode:
authorTong Hui <tonghuix@gmail.com>2016-09-11 15:36:53 +0800
committerTong Hui <tonghuix@gmail.com>2016-09-11 15:36:53 +0800
commit931bf56fb0145579250b22006e9858134f2fe010 (patch)
tree89e3b3a40afd75cd039225b8b806730a8bc7e550 /docs/appendix-a.md
parent191d18f6b494ccc9e1b0c40ffca2603ba76476d9 (diff)
downloadfsfs-zh-931bf56fb0145579250b22006e9858134f2fe010.tar.xz
Upate appendix A
Diffstat (limited to 'docs/appendix-a.md')
-rw-r--r--docs/appendix-a.md6
1 files changed, 1 insertions, 5 deletions
diff --git a/docs/appendix-a.md b/docs/appendix-a.md
index 5429f37..fcc4452 100644
--- a/docs/appendix-a.md
+++ b/docs/appendix-a.md
@@ -58,15 +58,11 @@ int main() {
重要的是理解即使*你*没有修改程序源代码或直接使用所有这些工具的能力,找到一个可以做到的人也是相对容易的。因此,有源代码的程序你就有权力去修改、修复、定制和学习编程——而如果得不到源代码就没有这些权力。源代码是让一个软件变*自由*的必要条件之一,而其他必要条件可从本书的哲学和理想中找到答案。
-### [(1)](#DOCF1)
-
-对于其他的编程语言,比如 Scheme,通常不从 Hello World 程序开始入门。在 Scheme 中,你通常会从这样的程序开始:
-
+[^1]: 对于其他的编程语言,比如 Scheme,通常不从 Hello World 程序开始入门。在 Scheme 中,你通常会从这样的程序开始:
```lisp
(define (factorial n)
(if (= n 0)
1
(* n (factorial (- n 1)))))
```
-
这段程序是求一个数的阶乘;也就是运行`(factorial 5)`将会输出 120,即 5 乘以 4 乘以 3 乘以 2 乘以 1。