Skip to content

Commit e98ba27

Browse files
committed
docs/locations.rst: fixes
1 parent f76199c commit e98ba27

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

docs/locations.rst

+7-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
.. Copyright 2011-2012, 2017 David Malcolm <[email protected]>
2-
Copyright 2011-2012, 2017 Red Hat, Inc.
1+
.. Copyright 2011-2012, 2017-2018 David Malcolm <[email protected]>
2+
Copyright 2011-2012, 2017-2018 Red Hat, Inc.
33
44
This is free software: you can redistribute it and/or modify it
55
under the terms of the GNU General Public License as published by
@@ -88,7 +88,7 @@ Locations
8888
(:py:class:`gcc.Location`) The start location of this range.
8989
In the above example, the start is on the opening parenthesis.
9090

91-
.. py:attribute:: start
91+
.. py:attribute:: finish
9292
9393
(:py:class:`gcc.Location`) The finish location of this range.
9494
In the above example, the finish is on the closing parenthesis.
@@ -98,6 +98,10 @@ Locations
9898
Wrapper around GCC's `rich_location`, representing one or more locations
9999
within the source code, and zero or more fix-it hints.
100100

101+
.. note::
102+
103+
gcc.RichLocation is only available from GCC 6 onwards
104+
101105
.. method:: add_fixit_replace(self, new_content)
102106

103107
Add a fix-it hint, suggesting replacement of the content covered

0 commit comments

Comments
 (0)