Skip to content

Commit

Permalink
修正go-interfaces.tex翻译错误
Browse files Browse the repository at this point in the history
  • Loading branch information
shionryuu committed Oct 10, 2014
1 parent afc49c9 commit be90992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions go-interfaces.tex
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,8 @@ \subsection{接口类型的方法}
\error{invalid receiver type ...} 的编译器错误。来自语言说明书 \cite{go_spec} 的权威内容:
\begin{quote}
接收者类型必须是 \type{T} 或 \type{*T},这里的 \type{T} 是类型名。
\type{T} 叫做接收者基础类型或简称基础类型。基础类型一定不能使指针或接口类型
并且定义在与方法相同的包中
\type{T} 叫做接收者基础类型或简称基础类型。基础类型一定不能是指针或接口类型
并且必须定义在与方法相同的包中
\end{quote}

\begin{lbar}[Pointers to interfaces]
Expand Down

0 comments on commit be90992

Please sign in to comment.