Skip to content

Fixed func (*Scanner) Text() description error #29

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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 pkg/bufio.htm
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ <h4 id="Scanner.Bytes">func (*Scanner) <a title="View Source" href="https://gith
<p>Bytes方法返回最近一次Scan调用生成的token。底层数组指向的数据可能会被下一次Scan的调用重写。</p>
<h4 id="Scanner.Text">func (*Scanner) <a title="View Source" href="https://github.com/golang/go/blob/master/src/bufio/scan.go?name=release#100">Text</a> <a class="permalink" href="#pkg-index">&para;</a></h4>
<pre class="funcdecl">func (s *<a href="#Scanner">Scanner</a>) Text() <a href="builtin.htm#string">string</a></pre>
<p>Bytes方法返回最近一次Scan调用生成的token,会申请创建一个字符串保存token并返回该字符串。</p>
<p>Text方法返回最近一次Scan调用生成的token,会申请创建一个字符串保存token并返回该字符串。</p>
<h4 id="Scanner.Err">func (*Scanner) <a title="View Source" href="https://github.com/golang/go/blob/master/src/bufio/scan.go?name=release#84">Err</a> <a class="permalink" href="#pkg-index">&para;</a></h4>
<pre class="funcdecl">func (s *<a href="#Scanner">Scanner</a>) Err() <a href="builtin.htm#error">error</a></pre>
<p>Err返回Scanner遇到的第一个非EOF的错误。</p>
Expand Down