From 3911fc2350a4acfcfebcbce09a8c28fdc0e6c351 Mon Sep 17 00:00:00 2001 From: SubmarineX Date: Mon, 21 Aug 2017 09:25:12 +0800 Subject: [PATCH] fix a simple problem --- google-shell-styleguide/formatting.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/google-shell-styleguide/formatting.rst b/google-shell-styleguide/formatting.rst index 733583b..16a276b 100644 --- a/google-shell-styleguide/formatting.rst +++ b/google-shell-styleguide/formatting.rst @@ -56,7 +56,7 @@ .. tip:: 请将 ``; do`` , ``; then`` 和 ``while`` , ``for`` , ``if`` 放在同一行。 -shell中的循坏略有不同,但是我们遵循跟声明函数时的大括号相同的原则。也就是说, ``; do`` , ``; then`` 应该和 if/for/while 放在同一行。 ``else`` 应该单独一行,结束语句应该单独一行并且跟开始语句垂直对齐。 +shell中的循环略有不同,但是我们遵循跟声明函数时的大括号相同的原则。也就是说, ``; do`` , ``; then`` 应该和 if/for/while 放在同一行。 ``else`` 应该单独一行,结束语句应该单独一行并且跟开始语句垂直对齐。 例如: