def add_endsemicolon_ocaml(text, semicolon=';;'):
    """
    Build an OCaml indenpendent cell by adding a closing ';;' at the end.

    Parameters
    ----------
    text : str
        Text to comment out.
    semicolon : str
        By default ';;'.
    """
    if not text.endswith(semicolon):
        return text + semicolon
    else:
        return text