summaryrefslogtreecommitdiffhomepage
path: root/zh-cn
diff options
context:
space:
mode:
Diffstat (limited to 'zh-cn')
-rw-r--r--zh-cn/bash-cn.html.markdown4
-rw-r--r--zh-cn/common-lisp.html.markdown9
-rwxr-xr-xzh-cn/git-cn.html.markdown4
-rwxr-xr-xzh-cn/java-cn.html.markdown2
-rwxr-xr-xzh-cn/python-cn.html.markdown2
5 files changed, 11 insertions, 10 deletions
diff --git a/zh-cn/bash-cn.html.markdown b/zh-cn/bash-cn.html.markdown
index e3eed3a6..2e885833 100644
--- a/zh-cn/bash-cn.html.markdown
+++ b/zh-cn/bash-cn.html.markdown
@@ -12,7 +12,7 @@ lang: zh-cn
---
Bash 是一个为 GNU 计划编写的 Unix shell,是 Linux 和 Mac OS X 下的默认 shell。
-以下大多数例子可以作为脚本的一部分运行也可直接在 shell 下交互执行。
+以下大多数例子可以作为脚本的一部分运行,也可直接在 shell 下交互执行。
[更多信息](http://www.gnu.org/software/bash/manual/bashref.html)
@@ -40,7 +40,7 @@ VARIABLE = "Some string"
echo $VARIABLE
echo "$VARIABLE"
echo '$VARIABLE'
-# 当你分配 (assign) 、导出 (export),或者以其他方式使用变量时,变量名前不加 $。
+# 当你赋值 (assign) 、导出 (export),或者以其他方式使用变量时,变量名前不加 $。
# 如果要使用变量的值, 则要加 $。
# 注意: ' (单引号) 不会展开变量(即会屏蔽掉变量)。
diff --git a/zh-cn/common-lisp.html.markdown b/zh-cn/common-lisp.html.markdown
index 72fd4787..9cc24198 100644
--- a/zh-cn/common-lisp.html.markdown
+++ b/zh-cn/common-lisp.html.markdown
@@ -1,10 +1,11 @@
---
-Language: "Common Lisp"
-Filename: commonlisp.lisp
-Contributor:
+language: "Common Lisp"
+filename: commonlisp-cn.lisp
+contributors:
- ["Paul Nathan", "https://github.com/pnathan"]
-Translator:
+translators:
- ["Mac David", "http://macdavid313.com"]
+lang: zh-cn
---
ANSI Common Lisp 是一个广泛通用于各个工业领域的、支持多种范式的编程语言。
diff --git a/zh-cn/git-cn.html.markdown b/zh-cn/git-cn.html.markdown
index 86952eba..4ef3ffb8 100755
--- a/zh-cn/git-cn.html.markdown
+++ b/zh-cn/git-cn.html.markdown
@@ -219,7 +219,7 @@ $ git diff
# 显示索引和最近一次提交的不同
$ git diff --cached
-# 显示宫缩目录和最近一次提交的不同
+# 显示工作目录和最近一次提交的不同
$ git diff HEAD
```
@@ -349,7 +349,7 @@ $ git reset --hard 31f2bb1
### rm
-和add相反,从工作空间中去掉某个文件爱你
+和add相反,从工作空间中去掉某个文件
```bash
# 移除 HelloWorld.c
diff --git a/zh-cn/java-cn.html.markdown b/zh-cn/java-cn.html.markdown
index 9422ac2f..f7d319e6 100755
--- a/zh-cn/java-cn.html.markdown
+++ b/zh-cn/java-cn.html.markdown
@@ -322,7 +322,7 @@ class Bicycle {
// 方法声明的语法:
// <作用域> <返回值类型> <方法名>(<参数列表>)
public int getCadence() {
- retur450635425n cadence;
+ return cadence;
}
// void返450635425回值函数没有返回值
diff --git a/zh-cn/python-cn.html.markdown b/zh-cn/python-cn.html.markdown
index 51efaac3..deb94cdc 100755
--- a/zh-cn/python-cn.html.markdown
+++ b/zh-cn/python-cn.html.markdown
@@ -232,7 +232,7 @@ filled_dict.setdefault("five", 6) # filled_dict["five"] 的值仍然是 5
# 集合储存无顺序的元素
empty_set = set()
# 初始化一个集合
-some_set = set([1, 2, 2, 3, 4]) # filled_set 现在是 set([1, 2, 3, 4])
+some_set = set([1, 2, 2, 3, 4]) # some_set 现在是 set([1, 2, 3, 4])
# Python 2.7 之后,大括号可以用来表示集合
filled_set = {1, 2, 2, 3, 4} # => {1 2 3 4}