Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix typos in graceful-restart-or-stop.md #258

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion content/en/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ func main() {
quit := make(chan os.Signal, 1)
// kill (no param) default send syscall.SIGTERM
// kill -2 is syscall.SIGINT
// kill -9 is syscall. SIGKILL but can"t be catch, so don't need add it
// kill -9 is syscall.SIGKILL but can't be caught, so don't need add it
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
<-quit
log.Println("Shutdown Server ...")
Expand Down
2 changes: 1 addition & 1 deletion content/es/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {
// Espera por la señal de interrupción para el apagado controlado del servidor
// con un tiempo de espera de 5 segundos.
quit := make(chan os.Signal, 1)
// kill (sin parámetro) envío por defecto de la señal syscanll.SIGTERM
// kill (sin parámetro) envío por defecto de la señal syscall.SIGTERM
// kill -2 es syscall.SIGINT
// kill -9 es syscall.SIGKILL pero no se puede atrapar, así que no es necesario agregarlo
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
Expand Down
4 changes: 2 additions & 2 deletions content/fa/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ func main() {
// Wait for interrupt signal to gracefully shutdown the server with
// a timeout of 5 seconds.
quit := make(chan os.Signal, 1)
// kill (no param) default send syscanll.SIGTERM
// kill (no param) default sends syscall.SIGTERM
// kill -2 is syscall.SIGINT
// kill -9 is syscall. SIGKILL but can"t be catch, so don't need add it
// kill -9 is syscall.SIGKILL but can't be caught, so don't need add it
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
<-quit
log.Println("Shutdown Server ...")
Expand Down
4 changes: 2 additions & 2 deletions content/ja/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ func main() {

// シグナル割り込みを待ち、タイムアウト時間が5秒の graceful shutdown をする
quit := make(chan os.Signal, 1)
// kill (no param) default send syscanll.SIGTERM
// kill (no param) default sends syscall.SIGTERM
// kill -2 is syscall.SIGINT
// kill -9 is syscall. SIGKILL but can"t be catch, so don't need add it
// kill -9 is syscall. SIGKILL but can't be caught, so don't need add it
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
<-quit
log.Println("Shutdown Server ...")
Expand Down
2 changes: 1 addition & 1 deletion content/ko-kr/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func main() {

// 5초의 타임아웃으로 인해 인터럽트 신호가 서버를 정상종료 할 때까지 기다립니다.
quit := make(chan os.Signal, 1)
// kill (파라미터 없음) 기본값으로 syscanll.SIGTERM를 보냅니다
// kill (파라미터 없음) 기본값으로 syscall.SIGTERM를 보냅니다
// kill -2 는 syscall.SIGINT를 보냅니다
// kill -9 는 syscall.SIGKILL를 보내지만 캐치할수 없으므로, 추가할 필요가 없습니다.
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
Expand Down
2 changes: 1 addition & 1 deletion content/pt/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func main() {
// espere pelo sinal de interrupção para parar graciosamente o
// servidor com uma pausa de 5 segundos.
quit := make(chan os.Signal, 1)
// "kill" padrão (sem parâmetro) envia "syscanll.SIGTERM"
// "kill" padrão (sem parâmetro) envia "syscall.SIGTERM"
// "kill -2" é "syscall.SIGINT"
// "kill -9" é "syscall.SIGKILL" mas não pode ser capturado,
// então não precisas adicioná-lo
Expand Down
4 changes: 2 additions & 2 deletions content/tr/docs/examples/graceful-restart-or-stop.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ func main() {
// Wait for interrupt signal to gracefully shutdown the server with
// a timeout of 5 seconds.
quit := make(chan os.Signal, 1)
// kill (no param) default send syscanll.SIGTERM
// kill (no param) default sends syscall.SIGTERM
// kill -2 is syscall.SIGINT
// kill -9 is syscall. SIGKILL but can"t be catch, so don't need add it
// kill -9 is syscall.SIGKILL but can't be caught, so don't need add it
signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
<-quit
log.Println("Shutdown Server ...")
Expand Down