Use hyperlinks to refer to other procs.

This commit is contained in:
Charles Blake 2015-08-04 13:16:27 -04:00
commit 0487ad4180

View file

@ -309,9 +309,10 @@ iterator memSlices*(mfile: MemFile, delim='\l', eat='\r'): MemSlice {.inline.} =
remaining = mfile.size - (ms.data -! mfile.mem) remaining = mfile.size - (ms.data -! mfile.mem)
iterator lines*(mfile: MemFile, buf: var TaintedString, delim='\l', eat='\r'): TaintedString {.inline.} = iterator lines*(mfile: MemFile, buf: var TaintedString, delim='\l', eat='\r'): TaintedString {.inline.} =
## Replace contents of passed buffer with each new line, like readLine(File). ## Replace contents of passed buffer with each new line, like
## `delim`, `eat`, and delimiting logic is exactly as for memSlices, but Nim ## `readLine(File) <system.html#readLine,File,TaintedString>`_.
## strings are returned. Example: ## `delim`, `eat`, and delimiting logic is exactly as for
## `memSlices <#memSlices>`_, but Nim strings are returned. Example:
## ##
## .. code-block:: nim ## .. code-block:: nim
## var buffer: TaintedString = "" ## var buffer: TaintedString = ""
@ -325,9 +326,10 @@ iterator lines*(mfile: MemFile, buf: var TaintedString, delim='\l', eat='\r'): T
yield buf yield buf
iterator lines*(mfile: MemFile, delim='\l', eat='\r'): TaintedString {.inline.} = iterator lines*(mfile: MemFile, delim='\l', eat='\r'): TaintedString {.inline.} =
## Return each line in a file as a Nim string, like lines(File). ## Return each line in a file as a Nim string, like
## `delim`, `eat`, and delimiting logic is exactly as for memSlices, but Nim ## `lines(File) <system.html#lines.i,File>`_.
## strings are returned. Example: ## `delim`, `eat`, and delimiting logic is exactly as for
## `memSlices <#memSlices>`_, but Nim strings are returned. Example:
## ##
## .. code-block:: nim ## .. code-block:: nim
## for line in lines(memfiles.open("foo")): ## for line in lines(memfiles.open("foo")):