浏览代码

Corrected doc'd type of some parameters from string to str.

Tim Graham 7 年之前
父节点
当前提交
d63c00a428
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      docs/ref/contrib/gis/geos.txt
  2. 2 2
      docs/ref/urls.txt

+ 1 - 1
docs/ref/contrib/gis/geos.txt

@@ -905,7 +905,7 @@ Geometry Factories
 .. function:: fromstr(string, srid=None)
 
     :param string: string that contains spatial data
-    :type string: string
+    :type string: str
     :param srid: spatial reference identifier
     :type srid: int
     :rtype: a :class:`GEOSGeometry` corresponding to the spatial data in the string

+ 2 - 2
docs/ref/urls.txt

@@ -101,10 +101,10 @@ The ``view``, ``kwargs`` and ``name`` arguments are the same as for
 
     :arg module: URLconf module (or module name)
     :arg namespace: Instance namespace for the URL entries being included
-    :type namespace: string
+    :type namespace: str
     :arg pattern_list: Iterable of :func:`~django.urls.path` and/or :func:`~django.urls.re_path` instances.
     :arg app_namespace: Application namespace for the URL entries being included
-    :type app_namespace: string
+    :type app_namespace: str
 
 See :ref:`including-other-urlconfs` and :ref:`namespaces-and-include`.