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

练习5.9 翻译结果有误 #74

Open
wumouse opened this issue Oct 21, 2022 · 0 comments
Open

练习5.9 翻译结果有误 #74

wumouse opened this issue Oct 21, 2022 · 0 comments

Comments

@wumouse
Copy link

wumouse commented Oct 21, 2022

原文:
Exercise 5.9: Write a function expand(s string, f func(string) string) string that replaces each substring “$foo” within s by the text returned by f("foo").

翻译:
编写函数expand,将s中的"foo"替换为f("foo")的返回值。
func expand(s string, f func(string) string) string

主要是翻译里 $foo 缺少了$,让人无法理解题意

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant