Skip to content

Commit

Permalink
fix python docs
Browse files Browse the repository at this point in the history
  • Loading branch information
bminixhofer committed Jan 7, 2021
1 parent 6923d40 commit 4b62153
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions bindings/python/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,7 @@ impl PyToken {
/// * end (int): The end character position of the suggestion in the original text.
/// * text (List[str]): A list of suggested replacements.
/// * source (str): The ID of the rule that triggered this suggestion.
/// * message (str): A human-readable message for this suggestion.
#[pyclass(name = "Suggestion", module = "nlprule")]
struct PySuggestion {
suggestion: Suggestion,
Expand Down Expand Up @@ -573,6 +574,11 @@ impl PyTokenizer {
}
}

/// One grammatical rule.
///
/// Can not be created directly but accessed by the `.rules` attribute on the rules.
/// Attributes:
/// * id (str): The id of this rule.
#[pyclass(name = "Rule", module = "nlprule")]
struct PyRule {
id: String,
Expand All @@ -586,11 +592,6 @@ impl PyRule {
}
}

/// One grammatical rule.
///
/// Can not be created directly but accessed by the `.rules` attribute on the rules.
/// Attributes:
/// * id (str): The id of this rule.
#[pymethods]
impl PyRule {
#[getter]
Expand Down

0 comments on commit 4b62153

Please sign in to comment.