Skip to content

Commit 4dd73b4

Browse files
Merge pull request #1 from polaris1119/master
同步
2 parents 602ac98 + c906a64 commit 4dd73b4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pkg/container_list.htm

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<!DOCTYPE html>
1+
<!DOCTYPE html>
22
<html lang="en">
33
<head profile="http://a9.com/-/spec/opensearch/1.1/">
44
<meta charset="utf-8">
@@ -107,7 +107,7 @@ <h4 id="List.Back">func (*List) <a title="View Source" href="https://github.com/
107107
<p>Back返回链表最后一个元素或nil。</p>
108108
<h4 id="List.PushFront">func (*List) <a title="View Source" href="https://github.com/golang/go/blob/master/src/container/list/list.go?name=release#131">PushFront</a> <a class="permalink" href="#pkg-index">&para;</a></h4>
109109
<pre class="funcdecl">func (l *<a href="#List">List</a>) PushFront(v interface{}) *<a href="#Element">Element</a></pre>
110-
<p>PushBack将一个值为v的新元素插入链表的第一个位置,返回生成的新元素。</p>
110+
<p>PushFront将一个值为v的新元素插入链表的第一个位置,返回生成的新元素。</p>
111111
<h4 id="List.PushFrontList">func (*List) <a title="View Source" href="https://github.com/golang/go/blob/master/src/container/list/list.go?name=release#211">PushFrontList</a> <a class="permalink" href="#pkg-index">&para;</a></h4>
112112
<pre class="funcdecl">func (l *<a href="#List">List</a>) PushFrontList(other *<a href="#List">List</a>)</pre>
113113
<p>PushFrontList创建链表other的拷贝,并将拷贝的最后一个位置连接到链表l的第一个位置。</p>

pkg/path_filepath.htm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ <h3 id="ToSlash">func <a title="View Source" href="https://github.com/golang/go/
117117
<p>ToSlash函数将path中的路径分隔符替换为斜杠('/')并返回替换结果,多个路径分隔符会替换为多个斜杠。</p>
118118
<h3 id="VolumeName">func <a title="View Source" href="https://github.com/golang/go/blob/master/src/path/filepath/path.go?name=release#465">VolumeName</a> <a class="permalink" href="#pkg-index">&para;</a></h3>
119119
<pre class="funcdecl">func VolumeName(path <a href="builtin.htm#string">string</a>) (v <a href="builtin.htm#string">string</a>)</pre>
120-
<p>VolumeName函数返回最前面的卷名。如Windows系统里提供参数"C:\foo\bar"会返回"C:";Unix/linux系统的&#34;\\host\share\foo&#34;会返回&#34;\\host\share&#34;;其他平台会返回&#34;&#34;。</p>
120+
<p>VolumeName函数返回最前面的卷名。如Windows系统里提供参数"C:\foo\bar"会返回"C:";提供&#34;\\host\share\foo&#34;会返回&#34;\\host\share&#34;;其他平台(包括unix/linux)会返回&#34;&#34;。</p>
121121
<h3 id="Dir">func <a title="View Source" href="https://github.com/golang/go/blob/master/src/path/filepath/path.go?name=release#444">Dir</a> <a class="permalink" href="#pkg-index">&para;</a></h3>
122122
<pre class="funcdecl">func Dir(path <a href="builtin.htm#string">string</a>) <a href="builtin.htm#string">string</a></pre>
123123
<p>Dir返回路径除去最后一个路径元素的部分,即该路径最后一个元素所在的目录。在使用Split去掉最后一个元素后,会简化路径并去掉末尾的斜杠。如果路径是空字符串,会返回".";如果路径由1到多个路径分隔符后跟0到多个非路径分隔符字符组成,会返回单个路径分隔符;其他任何情况下都不会返回以路径分隔符结尾的路径。</p>

0 commit comments

Comments
 (0)