summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--zh-cn/bash-cn.html.markdown2
-rwxr-xr-xzh-cn/git-cn.html.markdown4
-rwxr-xr-xzh-cn/java-cn.html.markdown2
-rwxr-xr-xzh-cn/python-cn.html.markdown2
4 files changed, 5 insertions, 5 deletions
diff --git a/zh-cn/bash-cn.html.markdown b/zh-cn/bash-cn.html.markdown
index e9cc7a9c..2e885833 100644
--- a/zh-cn/bash-cn.html.markdown
+++ b/zh-cn/bash-cn.html.markdown
@@ -40,7 +40,7 @@ VARIABLE = "Some string"
echo $VARIABLE
echo "$VARIABLE"
echo '$VARIABLE'
-# 当你分配 (assign) 、导出 (export),或者以其他方式使用变量时,变量名前不加 $。
+# 当你赋值 (assign) 、导出 (export),或者以其他方式使用变量时,变量名前不加 $。
# 如果要使用变量的值, 则要加 $。
# 注意: ' (单引号) 不会展开变量(即会屏蔽掉变量)。
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}