Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Changes requested by comments #3 and #4
Browse files Browse the repository at this point in the history
Changed as requested in #3. Was the period at the end of the first input
really wrong?

Changed as requested in #4 about trailing spaces, but didn't remove the
list comprehension as noted in #5.
  • Loading branch information
heluani committed Jun 5, 2020
1 parent 1570469 commit 725d4b5
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/sage/misc/defaults.py
Expand Up @@ -25,19 +25,19 @@


def variable_names(n, name=None):
"""
Converts a root string into a tuple of variable names by adding
r"""
Converts a root string into a tuple of variable names by adding
numbers in sequence.
INPUT:
- ``n`` a non-negative Integer. The number of variable names to
output.
- ``names`` a string (Default: ``None``); The root of the variable
name.
- ``n`` a non-negative Integer; the number of variable names to
output
- ``names`` a string (default: ``None``); the root of the variable
name.
EXAMPLES::
sage: from sage.misc.defaults import variable_names
sage: variable_names(0)
()
Expand All @@ -56,16 +56,16 @@ def variable_names(n, name=None):
return tuple(['%s%s'%(name,i) for i in range(n)])

def latex_variable_names(n, name=None):
"""
Converts a root string into a tuple of variable names by adding
r"""
Converts a root string into a tuple of variable names by adding
numbers in sequence.
INPUT:
- ``n`` a non-negative Integer. The number of variable names to
output.
- ``names`` a string (Default: ``None``); The root of the variable
name.
- ``n`` a non-negative Integer; the number of variable names to
output
- ``names`` a string (default: ``None``); the root of the variable
name.
EXAMPLES::
Expand Down

0 comments on commit 725d4b5

Please sign in to comment.