From 4a084515305636afd87b4118524d9de0ba9db105 Mon Sep 17 00:00:00 2001 From: Respawnz <47511522+Respawnz@users.noreply.github.com> Date: Fri, 26 Apr 2019 03:45:57 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=9F=E4=B9=A6=E6=AD=A4=E5=A4=84=E6=9C=89?= =?UTF-8?q?=E8=AF=AF=EF=BC=8C=E6=8C=89=E7=85=A7=E5=8E=9F=E8=91=97183?= =?UTF-8?q?=E9=A1=B5=E6=AD=A3=E6=96=87=E9=87=8C=E5=BA=94=E8=AF=A5=E6=98=AF?= =?UTF-8?q?7.14=20(#604)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit page:183 Exercise 7.14: string_reverse.go:Write a program that reverses a string, so “Google” is printed as ” elgooG”. (Hint: use a slice of bytes and conversions.)If you coded a solution with two slices, try a variant which uses only one (Hint: use swapping) If you want to be able to reverse Unicode-strings: use [ ]int ! --- eBook/13.8.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eBook/13.8.md b/eBook/13.8.md index 6f744dc..e044c77 100644 --- a/eBook/13.8.md +++ b/eBook/13.8.md @@ -117,7 +117,7 @@ FAIL **练习 13.4:**[string_reverse_test.go](exercises/chapter_13/string_reverse_test.go) -为练习 7.11 [string_reverse.go](exercises/chapter_7/string_reverse.go) 写一个单元测试。 +为练习 7.14 [string_reverse.go](exercises/chapter_7/string_reverse.go) 写一个单元测试。 把 string_reverse 放到自己的包 strev 中,只包含一个可导出函数 reverse。